cargo fmt

This commit is contained in:
sharkdp 2020-04-23 00:56:35 +02:00
parent 9e622a1a5f
commit 0064321323
2 changed files with 5 additions and 2 deletions

View File

@ -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(

View File

@ -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)