summaryrefslogtreecommitdiffstats
path: root/src/command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.rs')
-rw-r--r--src/command.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.rs b/src/command.rs
index a3305c2..c74b908 100644
--- a/src/command.rs
+++ b/src/command.rs
@@ -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,