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
|
@ -22,11 +22,7 @@ impl Delegate {
|
|||
.iter()
|
||||
.copied()
|
||||
.enumerate()
|
||||
.map(|(id, string)| StringMatchCandidate {
|
||||
id,
|
||||
char_bag: string.into(),
|
||||
string: string.into(),
|
||||
})
|
||||
.map(|(id, string)| StringMatchCandidate::new(id, string))
|
||||
.collect(),
|
||||
matches: vec![],
|
||||
selected_ix: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue