From 3abaec4de97b70462baaf7c6ab1d53836c8afb61 Mon Sep 17 00:00:00 2001 From: wanglujun Date: Thu, 21 Mar 2024 10:50:16 +0800 Subject: [PATCH] glob is called twice --- src/bin/bat/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/bat/main.rs b/src/bin/bat/main.rs index 38595721..f343417c 100644 --- a/src/bin/bat/main.rs +++ b/src/bin/bat/main.rs @@ -87,7 +87,7 @@ where for mapping in mappings { if let (matcher, MappingTarget::MapTo(s)) = mapping { let globs = map.entry(*s).or_insert_with(Vec::new); - globs.push(matcher.glob().glob().into()); + globs.push(matcher.glob().to_string()); } } map