diff --git a/src/analyzer.rs b/src/analyzer.rs index c7ef3ea615..5e8a928830 100644 --- a/src/analyzer.rs +++ b/src/analyzer.rs @@ -106,11 +106,7 @@ impl<'run, 'src> Analyzer<'run, 'src> { let settings = Settings::from_table(sets); - let recipe_names: Vec> = analyzer - .recipes - .iter() - .map(|recipe| recipe.name.clone()) - .collect(); + let recipe_names: Vec> = analyzer.recipes.iter().map(|recipe| recipe.name).collect(); for name in recipe_names { analyzer.define(name, "recipe", settings.allow_duplicate_recipes)?; }