Improve StringMatchCandidate::new interface (#22011)
Release Notes: - N/A
This commit is contained in:
parent
9daa426e93
commit
25970650a7
28 changed files with 92 additions and 184 deletions
|
@ -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>>();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue