Skip to content

Commit

Permalink
fix: issue with --all when workspace member also exists in dep tree (r…
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright authored and topecongiro committed Aug 5, 2019
1 parent 3adfb08 commit afc8fbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cargo-fmt/main.rs
Expand Up @@ -340,7 +340,7 @@ fn get_targets_recursive(
let dependency_package = metadata_with_deps
.packages
.iter()
.find(|p| p.name == dependency.name);
.find(|p| p.name == dependency.name && p.source.is_none());
let manifest_path = if dependency_package.is_some() {
PathBuf::from(&dependency_package.unwrap().manifest_path)
} else {
Expand Down

0 comments on commit afc8fbd

Please sign in to comment.