mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 10:11:07 +00:00
cargo fmt
This commit is contained in:
parent
9e622a1a5f
commit
0064321323
@ -30,7 +30,10 @@ impl<'a> SyntaxMapping<'a> {
|
||||
.insert("**/.ssh/config", MappingTarget::MapTo("SSH Config"))
|
||||
.unwrap();
|
||||
mapping
|
||||
.insert("**/bat/config", MappingTarget::MapTo("Bourne Again Shell (bash)"))
|
||||
.insert(
|
||||
"**/bat/config",
|
||||
MappingTarget::MapTo("Bourne Again Shell (bash)"),
|
||||
)
|
||||
.unwrap();
|
||||
mapping
|
||||
.insert(
|
||||
|
@ -30,7 +30,7 @@ pub fn to_ansi_color(color: highlighting::Color, true_color: bool) -> ansi_term:
|
||||
0x0d => Color::Purple,
|
||||
0x0e => Color::Cyan,
|
||||
0x0f => Color::White,
|
||||
_ => unreachable!("The 0x0f color encoding does not allow for codes higher than 0x0f")
|
||||
_ => unreachable!("The 0x0f color encoding does not allow for codes higher than 0x0f"),
|
||||
}
|
||||
} else if true_color {
|
||||
RGB(color.r, color.g, color.b)
|
||||
|
Loading…
x
Reference in New Issue
Block a user