@@ -74,13 +74,9 @@ fn get_syntax_mapping_to_paths<'a>(
7474) -> HashMap<&'a str, Vec<String>> {
7575 let mut map = HashMap::new();
7676 for mapping in mappings {
77− match mapping {
78− (_, MappingTarget::MapToUnknown) => {}
79− (_, MappingTarget::MapExtensionToUnknown) => {}
80− (matcher, MappingTarget::MapTo(s)) => {
81− let globs = map.entry(*s).or_insert_with(Vec::new);
82− globs.push(matcher.glob().glob().into());
83− }
77+ if let (matcher, MappingTarget::MapTo(s)) = mapping {
78+ let globs = map.entry(*s).or_insert_with(Vec::new);
79+ globs.push(matcher.glob().glob().into());
8480 }
8581 }
8682 map