Skip to content

Commit

Permalink
Migrate for rust edition 2024
Browse files Browse the repository at this point in the history
`gen` keyword is reserved
  • Loading branch information
ChanTsune committed Aug 13, 2024
1 parent 990ed0e commit 7c32fdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/command/complete.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ impl Command for CompleteArgs {
}
}

fn print_completions<G: Generator>(gen: G, cmd: &mut clap::Command) {
fn print_completions<G: Generator>(generator: G, cmd: &mut clap::Command) {
let name = env::args().next().map(PathBuf::from).unwrap();
generate(
gen,
generator,
cmd,
name.file_name().unwrap().to_string_lossy(),
&mut io::stdout(),
Expand Down

0 comments on commit 7c32fdd

Please sign in to comment.