Fix clippy suggestions

This commit is contained in:
David Peter authored and David Peter committed 2022-09-07 09:20:50 +02:00
1 parent 790e1bfa2c
commit c7e56942f7
5 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -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,