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);