From 3d2e7ad42920bc3e5c5a479e86afda75ffa46bbb Mon Sep 17 00:00:00 2001 From: Omnikar Date: Mon, 8 Nov 2021 05:59:19 -0500 Subject: [PATCH] Simplify --- helix-term/src/ui/mod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/helix-term/src/ui/mod.rs b/helix-term/src/ui/mod.rs index d489abc02..aa572b8b6 100644 --- a/helix-term/src/ui/mod.rs +++ b/helix-term/src/ui/mod.rs @@ -239,10 +239,8 @@ pub mod completers { let mut matches: Vec<_> = commands .into_iter() - .map(|name| ((0..), Cow::from(name))) - .filter_map(|(_range, name)| { - matcher.fuzzy_match(&name, input).map(|score| (name, score)) - }) + .map(|name| Cow::from(name)) + .filter_map(|name| matcher.fuzzy_match(&name, input).map(|score| (name, score))) .collect(); matches.sort_unstable_by_key(|(_file, score)| Reverse(*score));