Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
neunenak committed Sep 21, 2024
1 parent 91117d6 commit 5864753
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/analyzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,7 @@ impl<'run, 'src> Analyzer<'run, 'src> {

let settings = Settings::from_table(sets);

let recipe_names: Vec<Name<'src>> = analyzer
.recipes
.iter()
.map(|recipe| recipe.name.clone())
.collect();
let recipe_names: Vec<Name<'src>> = analyzer.recipes.iter().map(|recipe| recipe.name).collect();
for name in recipe_names {
analyzer.define(name, "recipe", settings.allow_duplicate_recipes)?;
}
Expand Down

0 comments on commit 5864753

Please sign in to comment.