Skip to content

Commit f7971f1

Browse files
committed
style(commands): make clippy happy
1 parent 49c38b5 commit f7971f1

File tree

1 file changed

+2
-2
lines changed
  • src/lib/commands/src/graph

1 file changed

+2
-2
lines changed

src/lib/commands/src/graph/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl CommandGraph {
162162
if !input_words.is_empty() && input_words[0] == name {
163163
// we found a match, we continue with the remaining input.
164164
let remaining = if input_words.len() > 1 {
165-
&remaining_input[name.len()..].trim_start()
165+
remaining_input[name.len()..].trim_start()
166166
} else {
167167
""
168168
};
@@ -183,7 +183,7 @@ impl CommandGraph {
183183
// for argument nodes, we consume one argument and then continue.
184184
if !input_words.is_empty() {
185185
let remaining = if input_words.len() > 1 {
186-
&remaining_input[input_words[0].len()..].trim_start()
186+
remaining_input[input_words[0].len()..].trim_start()
187187
} else {
188188
""
189189
};

0 commit comments

Comments
 (0)