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
|
@ -73,8 +73,8 @@ impl<T> Outline<T> {
|
|||
.map(|range| &item.text[range.start..range.end])
|
||||
.collect::<String>();
|
||||
|
||||
path_candidates.push(StringMatchCandidate::new(id, path_text.clone()));
|
||||
candidates.push(StringMatchCandidate::new(id, candidate_text));
|
||||
path_candidates.push(StringMatchCandidate::new(id, &path_text));
|
||||
candidates.push(StringMatchCandidate::new(id, &candidate_text));
|
||||
}
|
||||
|
||||
Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue