Skip to content

Commit

Permalink
style(commands): make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
radstevee committed Dec 29, 2024
1 parent 49c38b5 commit f7971f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/commands/src/graph/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ impl CommandGraph {
if !input_words.is_empty() && input_words[0] == name {
// we found a match, we continue with the remaining input.
let remaining = if input_words.len() > 1 {
&remaining_input[name.len()..].trim_start()
remaining_input[name.len()..].trim_start()
} else {
""
};
Expand All @@ -183,7 +183,7 @@ impl CommandGraph {
// for argument nodes, we consume one argument and then continue.
if !input_words.is_empty() {
let remaining = if input_words.len() > 1 {
&remaining_input[input_words[0].len()..].trim_start()
remaining_input[input_words[0].len()..].trim_start()
} else {
""
};
Expand Down

0 comments on commit f7971f1

Please sign in to comment.