We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 681c194 commit c685c13Copy full SHA for c685c13
src/bin/cargo/commands/tree.rs
@@ -157,15 +157,7 @@ pub fn exec(config: &mut Config, args: &ArgMatches<'_>) -> CliResult {
157
let (edge_kinds, no_proc_macro) = parse_edge_kinds(config, args)?;
158
let graph_features = edge_kinds.contains(&EdgeKind::Feature);
159
160
- let pkgs_to_prune = args.values_of("prune").map_or_else(
161
- || Vec::new(),
162
- |ps| {
163
- let mut specs = ps.map(|p| p.to_string()).collect::<Vec<_>>();
164
- specs.sort_unstable();
165
- specs.dedup();
166
- specs
167
- },
168
- );
+ let pkgs_to_prune = args._values_of("prune");
169
170
let packages = args.packages_from_flags()?;
171
let mut invert = args
0 commit comments