1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-03-15 15:18:45 +00:00

glob is called twice

This commit is contained in:
wanglujun 2024-03-21 10:50:16 +08:00
parent 4790def1ef
commit 3abaec4de9

View File

@ -87,7 +87,7 @@ where
for mapping in mappings { for mapping in mappings {
if let (matcher, MappingTarget::MapTo(s)) = mapping { if let (matcher, MappingTarget::MapTo(s)) = mapping {
let globs = map.entry(*s).or_insert_with(Vec::new); let globs = map.entry(*s).or_insert_with(Vec::new);
globs.push(matcher.glob().glob().into()); globs.push(matcher.glob().to_string());
} }
} }
map map