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:
parent
4790def1ef
commit
3abaec4de9
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user