Skip to content

Commit

Permalink
🔥 Explicit type not required
Browse files Browse the repository at this point in the history
  • Loading branch information
segersniels committed Feb 23, 2024
1 parent 7f32938 commit 45eddbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> {
let mut threads = Vec::new();
let results: Arc<Mutex<HashSet<String>>> = 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);
Expand Down

0 comments on commit 45eddbc

Please sign in to comment.