Improve StringMatchCandidate::new interface (#22011)
Release Notes: - N/A
This commit is contained in:
@@ -208,7 +208,7 @@ impl IndexedDocsStore {
|
||||
let candidates = items
|
||||
.iter()
|
||||
.enumerate()
|
||||
.map(|(ix, item_path)| StringMatchCandidate::new(ix, item_path.clone()))
|
||||
.map(|(ix, item_path)| StringMatchCandidate::new(ix, &item_path))
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let matches = fuzzy::match_strings(
|
||||
|
||||
Reference in New Issue
Block a user