Fix Rust 1.37.0 compiler warnings (#5530)

Looks like most usages of trait objects should have introduced
a type variable instead.
This commit is contained in:
Greg Fitzgerald
2019-08-15 14:00:09 -06:00
committed by GitHub
parent 75a2b74751
commit 471bc73a23
13 changed files with 33 additions and 25 deletions

View File

@ -247,15 +247,15 @@ fn main() {
})
.collect();
let mut output_file: Box<Write> = if let Some(path) = args_matches.value_of("slot_list")
{
match File::create(path) {
Ok(file) => Box::new(file),
_ => Box::new(stdout()),
}
} else {
Box::new(stdout())
};
let mut output_file: Box<dyn Write> =
if let Some(path) = args_matches.value_of("slot_list") {
match File::create(path) {
Ok(file) => Box::new(file),
_ => Box::new(stdout()),
}
} else {
Box::new(stdout())
};
slot_hash
.into_iter()