mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Fix clippy suggestions
This commit is contained in:
1 parent
790e1bfa2c
commit
c7e56942f7
5 files changed
+8
-8
No files matched your search
+2
-2
@@ -179,7 +179,7 @@ impl<'a> Commands<'a> {
|
||||
'outer: loop {
|
||||
let name = command_names
|
||||
.get(i)
|
||||
.or_else(|| command_names.get(0))
|
||||
.or_else(|| command_names.first())
|
||||
.copied();
|
||||
i += 1;
|
||||
|
||||
@@ -271,7 +271,7 @@ impl<'a> Commands<'a> {
|
||||
for cmd in &command_strings {
|
||||
let name = command_names
|
||||
.get(i)
|
||||
.or_else(|| command_names.get(0))
|
||||
.or_else(|| command_names.first())
|
||||
.copied();
|
||||
commands.push(Command::new_parametrized(
|
||||
name,
|
||||
|
||||
Reference in new issue
Block a user