mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-01 19:02:22 +01:00
Remove .unwrap() in insert call to prevent crashes
This commit is contained in:
@@ -114,7 +114,7 @@ impl<'a> SyntaxMapping<'a> {
|
||||
.to_string_lossy(),
|
||||
MappingTarget::MapTo("Git Config"),
|
||||
)
|
||||
.unwrap();
|
||||
.ok();
|
||||
|
||||
mapping
|
||||
.insert(
|
||||
@@ -124,7 +124,7 @@ impl<'a> SyntaxMapping<'a> {
|
||||
.to_string_lossy(),
|
||||
MappingTarget::MapTo("Git Ignore"),
|
||||
)
|
||||
.unwrap();
|
||||
.ok();
|
||||
|
||||
mapping
|
||||
.insert(
|
||||
@@ -134,7 +134,7 @@ impl<'a> SyntaxMapping<'a> {
|
||||
.to_string_lossy(),
|
||||
MappingTarget::MapTo("Git Attributes"),
|
||||
)
|
||||
.unwrap();
|
||||
.ok();
|
||||
}
|
||||
|
||||
mapping
|
||||
|
Reference in New Issue
Block a user