mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 01:00:31 +00:00
Fix a few clippy warnings
This commit is contained in:
1 parent
0a77b43d17
commit
35a513917d
3 files changed
+26
-29
No files matched your search
+3
-4
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user