mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-01 19:02:22 +01:00
Code formatting
This commit is contained in:
@@ -104,9 +104,9 @@ pub fn build_app(interactive_output: bool) -> ClapApp<'static, 'static> {
|
||||
.help("Specify the name to display for a file.")
|
||||
.long_help(
|
||||
"Specify the name to display for a file. Useful when piping \
|
||||
data to bat from STDIN when bat does not otherwise know \
|
||||
the filename. Note that the provided file name is also \
|
||||
used for syntax detection.",
|
||||
data to bat from STDIN when bat does not otherwise know \
|
||||
the filename. Note that the provided file name is also \
|
||||
used for syntax detection.",
|
||||
),
|
||||
);
|
||||
|
||||
|
@@ -53,7 +53,7 @@ pub(crate) trait Printer {
|
||||
}
|
||||
|
||||
pub struct SimplePrinter<'a> {
|
||||
config: &'a Config<'a>
|
||||
config: &'a Config<'a>,
|
||||
}
|
||||
|
||||
impl<'a> SimplePrinter<'a> {
|
||||
|
@@ -92,14 +92,16 @@ impl<'a> SyntaxMapping<'a> {
|
||||
"*.swap",
|
||||
"*.target",
|
||||
"*.timer",
|
||||
].iter() {
|
||||
mapping
|
||||
.insert(glob, MappingTarget::MapTo("INI"))
|
||||
.unwrap();
|
||||
]
|
||||
.iter()
|
||||
{
|
||||
mapping.insert(glob, MappingTarget::MapTo("INI")).unwrap();
|
||||
}
|
||||
|
||||
// pacman hooks
|
||||
mapping.insert("*.hook", MappingTarget::MapTo("INI")).unwrap();
|
||||
mapping
|
||||
.insert("*.hook", MappingTarget::MapTo("INI"))
|
||||
.unwrap();
|
||||
|
||||
mapping
|
||||
}
|
||||
|
Reference in New Issue
Block a user