Remove warnings in tests;

This commit is contained in:
Benjamin Bouvier
2019-01-03 18:09:38 +01:00
committed by Dan Gohman
parent c78a9a4a7c
commit 03c22ed67a
4 changed files with 5 additions and 7 deletions

View File

@@ -100,8 +100,7 @@ fn main() {
}
}
("deserialize", Some(m)) => {
let mut file =
File::open(m.value_of("FILE").unwrap()).expect("Unable to open the file");
let file = File::open(m.value_of("FILE").unwrap()).expect("Unable to open the file");
call_de(&file)
}
_ => Err("Invalid subcommand.".to_string()),