2019: fix new clippy lints

This commit is contained in:
Antoine Martin 2020-12-14 19:45:51 +01:00
parent deb808faf3
commit 9a2e37468f
5 changed files with 83 additions and 60 deletions

View file

@ -90,7 +90,7 @@ fn get_ore_cost(
in_stock += num_reactions * recipe.produced;
}
inventory.insert(material.clone(), in_stock - quantity);
inventory.insert(material, in_stock - quantity);
Ok(total)
}