From f9df8c1729f761b5f4041bac7edcc25df9dfc896 Mon Sep 17 00:00:00 2001 From: Michael Sloan Date: Thu, 2 Jan 2025 15:11:14 -0700 Subject: [PATCH] Use the same label for both string and bag in tasks modal fuzzy match (#22022) #22592 tracks properly doing fuzzy match within the full label Release Notes: - N/A --- crates/tasks_ui/src/modal.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/tasks_ui/src/modal.rs b/crates/tasks_ui/src/modal.rs index 5595feaca7..2d85571079 100644 --- a/crates/tasks_ui/src/modal.rs +++ b/crates/tasks_ui/src/modal.rs @@ -555,11 +555,7 @@ fn string_match_candidates<'a>( ) -> Vec { candidates .enumerate() - .map(|(index, (_, candidate))| StringMatchCandidate { - id: index, - char_bag: candidate.resolved_label.chars().collect(), - string: candidate.display_label().into(), - }) + .map(|(index, (_, candidate))| StringMatchCandidate::new(index, candidate.display_label())) .collect() }