Improve StringMatchCandidate::new interface (#22011)
Release Notes: - N/A
This commit is contained in:
@@ -112,7 +112,7 @@ impl LanguageSelectorDelegate {
|
||||
.then_some(name)
|
||||
})
|
||||
.enumerate()
|
||||
.map(|(candidate_id, name)| StringMatchCandidate::new(candidate_id, name))
|
||||
.map(|(candidate_id, name)| StringMatchCandidate::new(candidate_id, &name))
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
Self {
|
||||
|
||||
Reference in New Issue
Block a user