You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
correctly compare directory paths in get_targets_root_only
Previously, when running `cargo fmt --manifest-path Cargo.toml` from a
cargo workspace's root directory `cargo fmt` would error with a message
that read `Failed to find targets`.
The issue stemmed from an incorrect comparison between the path to the
workspace's root **directory** and the path to the specified
`Cargo.toml` **file**. This lead `cargo fmt` to incorrectly determine
that the command wasn't being run from the workspace's root.
0 commit comments