fix some pedantic clippy lints that make sense
- clippy::redundant-closure-for-method-calls - clippy::explicit-iter-loop
This commit is contained in:
parent
449cdc0157
commit
e25bc47f8f
20 changed files with 59 additions and 66 deletions
|
|
@ -79,7 +79,7 @@ fn get_ore_cost(
|
|||
|
||||
let needed = quantity - in_stock;
|
||||
let num_reactions = (needed + recipe.produced - 1) / recipe.produced;
|
||||
for elem in recipe.elems.iter() {
|
||||
for elem in &recipe.elems {
|
||||
total += get_ore_cost(
|
||||
elem.name.clone(),
|
||||
elem.amount * num_reactions,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue