Improve StringMatchCandidate::new interface (#22011)
Release Notes: - N/A
This commit is contained in:
@@ -13293,7 +13293,7 @@ fn snippet_completions(
|
||||
snippet
|
||||
.prefix
|
||||
.iter()
|
||||
.map(move |prefix| StringMatchCandidate::new(ix, prefix.clone()))
|
||||
.map(move |prefix| StringMatchCandidate::new(ix, &prefix))
|
||||
})
|
||||
.collect::<Vec<StringMatchCandidate>>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user