From f7971f146e86ebd69e0927e1c5041480d3d4ffb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Kr=C3=BCger?= Date: Sun, 29 Dec 2024 02:42:41 +0100 Subject: [PATCH] style(commands): make clippy happy --- src/lib/commands/src/graph/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/commands/src/graph/mod.rs b/src/lib/commands/src/graph/mod.rs index 869ed7bb..0ebb6271 100644 --- a/src/lib/commands/src/graph/mod.rs +++ b/src/lib/commands/src/graph/mod.rs @@ -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 { "" }; @@ -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 { "" };