mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Remove .unwrap() in insert call to prevent crashes
This commit is contained in:
1 parent
a46191b8bf
commit
2258fb2713
1 file changed
+3
-3
@@ -114,7 +114,7 @@ impl<'a> SyntaxMapping<'a> {
|
|||||||
.to_string_lossy(),
|
.to_string_lossy(),
|
||||||
MappingTarget::MapTo("Git Config"),
|
MappingTarget::MapTo("Git Config"),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.ok();
|
||||||
|
|
||||||
mapping
|
mapping
|
||||||
.insert(
|
.insert(
|
||||||
@@ -124,7 +124,7 @@ impl<'a> SyntaxMapping<'a> {
|
|||||||
.to_string_lossy(),
|
.to_string_lossy(),
|
||||||
MappingTarget::MapTo("Git Ignore"),
|
MappingTarget::MapTo("Git Ignore"),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.ok();
|
||||||
|
|
||||||
mapping
|
mapping
|
||||||
.insert(
|
.insert(
|
||||||
@@ -134,7 +134,7 @@ impl<'a> SyntaxMapping<'a> {
|
|||||||
.to_string_lossy(),
|
.to_string_lossy(),
|
||||||
MappingTarget::MapTo("Git Attributes"),
|
MappingTarget::MapTo("Git Attributes"),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
mapping
|
mapping
|
||||||
|
|||||||
Reference in new issue
Block a user