From d9dafcc7f3833e772c8a5e3b0cd914fdcae02aa4 Mon Sep 17 00:00:00 2001 From: iff Date: Mon, 20 Jan 2025 15:37:45 +0100 Subject: [PATCH] chore: remove duplicated executables --- utils/src/files.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/src/files.rs b/utils/src/files.rs index 362340f..c9c0ada 100644 --- a/utils/src/files.rs +++ b/utils/src/files.rs @@ -3,6 +3,7 @@ // file, You can obtain one at http://mozilla.org/MPL/2.0/. use crate::evals::find_similar; +use itertools::Itertools; pub fn get_path_files() -> Vec { let path_env = path_env(); @@ -44,7 +45,7 @@ pub fn get_path_files() -> Vec { eprintln!("all_executable={all_executable:?}"); } - all_executable + all_executable.iter().unique().cloned().collect() } pub fn best_match_file(input: &str) -> Option {