From b7bd427a2b4474b44665c478bb4c07b1544e5d77 Mon Sep 17 00:00:00 2001 From: TornaxO7 Date: Sat, 24 Feb 2024 19:43:17 +0100 Subject: [PATCH] removing unecessary clone --- helix-term/src/commands.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 6d63ab70eae0..6b75c2617c5e 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1205,7 +1205,6 @@ fn goto_file_impl(cx: &mut Context, action: Action) { let prefix_len = text .chars_at(start_pos) - .clone() .reversed() .take_while(is_valid_path_char) .count();