mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Simplify code
This commit is contained in:
1 parent
2258fb2713
commit
30993a8bfc
1 file changed
+3
-12
+3
-12
@@ -108,30 +108,21 @@ impl<'a> SyntaxMapping<'a> {
|
|||||||
|
|
||||||
mapping
|
mapping
|
||||||
.insert(
|
.insert(
|
||||||
&git_config_path
|
&git_config_path.join("config").to_string_lossy(),
|
||||||
.join("config")
|
|
||||||
.into_os_string()
|
|
||||||
.to_string_lossy(),
|
|
||||||
MappingTarget::MapTo("Git Config"),
|
MappingTarget::MapTo("Git Config"),
|
||||||
)
|
)
|
||||||
.ok();
|
.ok();
|
||||||
|
|
||||||
mapping
|
mapping
|
||||||
.insert(
|
.insert(
|
||||||
&git_config_path
|
&git_config_path.join("ignore").to_string_lossy(),
|
||||||
.join("ignore")
|
|
||||||
.into_os_string()
|
|
||||||
.to_string_lossy(),
|
|
||||||
MappingTarget::MapTo("Git Ignore"),
|
MappingTarget::MapTo("Git Ignore"),
|
||||||
)
|
)
|
||||||
.ok();
|
.ok();
|
||||||
|
|
||||||
mapping
|
mapping
|
||||||
.insert(
|
.insert(
|
||||||
&git_config_path
|
&git_config_path.join("attributes").to_string_lossy(),
|
||||||
.join("attributes")
|
|
||||||
.into_os_string()
|
|
||||||
.to_string_lossy(),
|
|
||||||
MappingTarget::MapTo("Git Attributes"),
|
MappingTarget::MapTo("Git Attributes"),
|
||||||
)
|
)
|
||||||
.ok();
|
.ok();
|
||||||
|
|||||||
Reference in new issue
Block a user