Skip to content

Commit

Permalink
chore: Avoid using gen for rust 2024 preserved keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
Reverier-Xu authored Feb 22, 2025
1 parent 5029bb3 commit 45ed71c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clap_complete/src/aot/generator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ where
_generate::<G>(generator, cmd, buf);
}

fn _generate<G: Generator>(gen: G, cmd: &mut Command, buf: &mut dyn Write) {
fn _generate<G: Generator>(generator: G, cmd: &mut Command, buf: &mut dyn Write) {
cmd.build();
gen.generate(cmd, buf);
generator.generate(cmd, buf);
}

0 comments on commit 45ed71c

Please sign in to comment.