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

@@ -153,10 +153,9 @@ impl EncodingBuilder {
let inst = self.inst.inst();
assert!(
Rc::ptr_eq(&inst.format, &recipes[self.recipe].format),
format!(
"Inst {} and recipe {} must have the same format!",
inst.name, recipes[self.recipe].name
)
"Inst {} and recipe {} must have the same format!",
inst.name,
recipes[self.recipe].name
);
assert_eq!(