From 15010e94fda315d5743f0e572563fc2357a18de2 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Tue, 11 Jul 2023 15:29:15 +0200 Subject: [PATCH] fixup! recent_projects: Perform fuzzy search on compacted paths. --- crates/recent_projects/src/recent_projects.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/recent_projects/src/recent_projects.rs b/crates/recent_projects/src/recent_projects.rs index f04dab9edcc52996cad9de2c9df3cc6eda958918..cd512f1e574a166e5d63767f8adf6cc57ccb0b17 100644 --- a/crates/recent_projects/src/recent_projects.rs +++ b/crates/recent_projects/src/recent_projects.rs @@ -134,10 +134,7 @@ impl PickerDelegate for RecentProjectsDelegate { let combined_string = location .paths() .iter() - .map(|path| { - let compact = util::paths::compact(&path); - compact.to_string_lossy().into_owned() - }) + .map(|path| util::paths::compact(&path).to_string_lossy().into_owned()) .collect::>() .join(""); StringMatchCandidate::new(id, combined_string)