on master help sign in
Simplify code
commit30993a8bfc5c9913e7c35d225edba5fee21120f4 authorsharkdp <davidpeter@web.de> dateThu 1 Oct 2020, 20:34 (6 years ago) parent2258fb2
1 file changed+3−12
src/syntax_mapping.rs+3−12
src/syntax_mapping.rs+3−12
@@ -108,30 +108,21 @@ impl<'a> SyntaxMapping<'a> {
108108
109109 mapping
110110 .insert(
111− &git_config_path
112− .join("config")
113− .into_os_string()
114− .to_string_lossy(),
111+ &git_config_path.join("config").to_string_lossy(),
115112 MappingTarget::MapTo("Git Config"),
116113 )
117114 .ok();
118115
119116 mapping
120117 .insert(
121− &git_config_path
122− .join("ignore")
123− .into_os_string()
124− .to_string_lossy(),
118+ &git_config_path.join("ignore").to_string_lossy(),
125119 MappingTarget::MapTo("Git Ignore"),
126120 )
127121 .ok();
128122
129123 mapping
130124 .insert(
131− &git_config_path
132− .join("attributes")
133− .into_os_string()
134− .to_string_lossy(),
125+ &git_config_path.join("attributes").to_string_lossy(),
135126 MappingTarget::MapTo("Git Attributes"),
136127 )
137128 .ok();