rustfmt
rustfmt copied to clipboard
Handle `cargo fmt --manifest-path` when specifying the workspace's root `Cargo.toml`
Fixes #6517
The underlying issue was an incorrect comparison between a Cargo.toml file path and the workspace's root directory path. Now that we're comparing two directory paths in_workspace_root gets set correctly, and cargo-fmt is able to find all the workspace's package targets.
PR best reviewed 1 commit at a time.