rustfmt icon indicating copy to clipboard operation
rustfmt copied to clipboard

Handle `cargo fmt --manifest-path` when specifying the workspace's root `Cargo.toml`

Open ytmimi opened this issue 8 months ago • 0 comments

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.

ytmimi avatar Mar 29 '25 07:03 ytmimi