Fix a few clippy warnings

This commit is contained in:
sharkdp committed 2018-01-18 20:19:03 +01:00
1 parent 0a77b43d17
commit 35a513917d
3 files changed
+26 -29

No files matched your search

+3 -4
View File
@@ -28,7 +28,7 @@ fn run(commands: &Vec<&str>, options: &HyperfineOptions) -> io::Result<()> {
// Run the benchmarks
for (num, cmd) in commands.iter().enumerate() {
run_benchmark(num, &cmd, shell_spawning_time, &options)?;
run_benchmark(num, cmd, shell_spawning_time, options)?;
}
Ok(())
@@ -116,8 +116,7 @@ fn main() {
let commands = matches.values_of("command").unwrap().collect();
let res = run(&commands, &options);
match res {
Err(e) => error(e.description()),
Ok(_) => {}
if let Err(e) = res {
error(e.description());
}
}