From 45eddbce97954066fb9fa27fe6eab7c47a558555 Mon Sep 17 00:00:00 2001 From: segersniels Date: Fri, 23 Feb 2024 10:47:04 +0100 Subject: [PATCH] :fire: Explicit type not required --- src/utils/search.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/search.rs b/src/utils/search.rs index 2f453ff..0cbae03 100644 --- a/src/utils/search.rs +++ b/src/utils/search.rs @@ -30,7 +30,7 @@ fn is_similar(word: &str, needle: &str, threshold: f64) -> bool { /// Search for a needle in a haystack pub fn search(haystack: &[String], needle: &str, threshold: f64, split_char: &str) -> Vec { let mut threads = Vec::new(); - let results: Arc>> = Arc::new(Mutex::new(HashSet::new())); + let results = Arc::new(Mutex::new(HashSet::new())); for potential_needle in haystack.iter() { let results = Arc::clone(&results);