Skip to content

Commit 1fbc09a

Browse files
committed
fix: removed completely qualified_features
1 parent 1f18cdf commit 1fbc09a

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/cargo/util/command_prelude.rs

-16
Original file line numberDiff line numberDiff line change
@@ -1143,22 +1143,6 @@ fn get_feature_candidates() -> CargoResult<Vec<clap_complete::CompletionCandidat
11431143
.help(Some(format!("(from {})", package_name).into())),
11441144
);
11451145
}
1146-
1147-
// Add qualified features for dependencies
1148-
for dep in package.dependencies() {
1149-
let dep_name = dep.name_in_toml();
1150-
1151-
// Try to find this dependency in the workspace
1152-
if let Some(dep_pkg) = ws.members().find(|p| p.name() == dep_name) {
1153-
for feat in dep_pkg.summary().features().keys() {
1154-
let qualified_name = format!("{}/{}", dep_name, feat);
1155-
feature_candidates.push(
1156-
clap_complete::CompletionCandidate::new(qualified_name)
1157-
.help(Some(format!("(from {})", dep_pkg.name()).into())),
1158-
);
1159-
}
1160-
}
1161-
}
11621146
}
11631147

11641148
Ok(feature_candidates)

0 commit comments

Comments
 (0)