Fix a number of warnings on nightly Rust (#2652)

This fixes some issues that are cropping up where some syntax will get
phased out in 2021
This commit is contained in:
Alex Crichton
2021-02-11 12:42:45 -06:00
committed by GitHub
parent 9abae356e0
commit 09b976e1d5
9 changed files with 37 additions and 37 deletions

View File

@@ -25,7 +25,8 @@ impl RecipeGroup {
fn push(&mut self, builder: EncodingRecipeBuilder) {
assert!(
self.name_to_recipe.get(&builder.name).is_none(),
format!("riscv recipe '{}' created twice", builder.name)
"riscv recipe '{}' created twice",
builder.name
);
let name = builder.name.clone();
let number = self.recipes.push(builder.build());