diff options
author | sharkdp <davidpeter@web.de> | 2020-09-20 20:47:21 +0200 |
---|---|---|
committer | sharkdp <davidpeter@web.de> | 2020-09-20 20:47:21 +0200 |
commit | 71b20893844857c11f26a92c600cadaa24cc0f3a (patch) | |
tree | 5dae9b1788478f8d2e8f381f2f4cb9a64b051951 /src | |
parent | 57aa88a13a76434e3ab2d4a8065f6d8e208e5a3e (diff) |
Code formatting
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/bat/clap_app.rs | 6 | ||||
-rw-r--r-- | src/printer.rs | 2 | ||||
-rw-r--r-- | src/syntax_mapping.rs | 12 |
3 files changed, 11 insertions, 9 deletions
diff --git a/src/bin/bat/clap_app.rs b/src/bin/bat/clap_app.rs index 894c1bfb..aab61f35 100644 --- a/src/bin/bat/clap_app.rs +++ b/src/bin/bat/clap_app.rs @@ -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.", ), ); diff --git a/src/printer.rs b/src/printer.rs index 7e369a6e..71bf78ee 100644 --- a/src/printer.rs +++ b/src/printer.rs @@ -53,7 +53,7 @@ pub(crate) trait Printer { } pub struct SimplePrinter<'a> { - config: &'a Config<'a> + config: &'a Config<'a>, } impl<'a> SimplePrinter<'a> { diff --git a/src/syntax_mapping.rs b/src/syntax_mapping.rs index 96ce7fc6..25caf53f 100644 --- a/src/syntax_mapping.rs +++ b/src/syntax_mapping.rs @@ -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 } |