Skip to content

Commit

Permalink
dedup was only rust analyzer apparently
Browse files Browse the repository at this point in the history
  • Loading branch information
ModProg committed Jul 31, 2023
1 parent 16ded80 commit 3ef0467
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clap_complete/src/dynamic/completer.rs
Expand Up @@ -285,6 +285,6 @@ fn complete_subcommand(value: &str, cmd: &clap::Command) -> Vec<(OsString, Optio
.map(|x| (OsString::from(&x.0), x.2))
.collect::<Vec<_>>();
scs.sort();
// TODO: is this needed, doesn't work with styled string scs.dedup();
scs.dedup();
scs
}
2 changes: 1 addition & 1 deletion clap_complete/src/shells/zsh.rs
Expand Up @@ -113,7 +113,7 @@ _{bin_name_underscore}_commands() {{
let mut all_subcommands = utils::all_subcommands(p);

all_subcommands.sort();
// TODO: is this needed, doesn't work with styled string all_subcommands.dedup();
all_subcommands.dedup();

for (_, ref bin_name, _) in &all_subcommands {
debug!("subcommand_details:iter: bin_name={bin_name}");
Expand Down

0 comments on commit 3ef0467

Please sign in to comment.