Răsfoiți Sursa

style: fix clippy warning after rustfmt

Signed-off-by: Sandro-Alessio Gierens <sandro@gierens.de>
Sandro-Alessio Gierens 2 ani în urmă
părinte
comite
909ed2ee76
5 a modificat fișierele cu 8 adăugiri și 8 ștergeri
  1. 1 1
      src/main.rs
  2. 1 1
      src/options/parser.rs
  3. 2 2
      src/output/details.rs
  4. 2 2
      src/output/grid_details.rs
  5. 2 2
      src/theme/lsc.rs

+ 1 - 1
src/main.rs

@@ -284,7 +284,7 @@ impl<'args> Exa<'args> {
                         match child_dir.to_dir() {
                             Ok(d) => child_dirs.push(d),
                             Err(e) => {
-                                writeln!(io::stderr(), "{}: {}", child_dir.path.display(), e)?
+                                writeln!(io::stderr(), "{}: {}", child_dir.path.display(), e)?;
                             }
                         }
                     }

+ 1 - 1
src/options/parser.rs

@@ -177,7 +177,7 @@ impl Args {
                     let flag = Flag::Long(arg.long);
                     match arg.takes_value {
                         TakesValue::Necessary(_) | TakesValue::Optional(_) => {
-                            result_flags.push((flag, Some(after)))
+                            result_flags.push((flag, Some(after)));
                         }
                         TakesValue::Forbidden => return Err(ParseError::ForbiddenValue { flag }),
                     }

+ 2 - 2
src/output/details.rs

@@ -164,12 +164,12 @@ impl<'a> Render<'a> {
             match (self.git, self.dir) {
                 (Some(g), Some(d)) => {
                     if !g.has_anything_for(&d.path) {
-                        self.git = None
+                        self.git = None;
                     }
                 }
                 (Some(g), None) => {
                     if !self.files.iter().any(|f| g.has_anything_for(&f.path)) {
-                        self.git = None
+                        self.git = None;
                     }
                 }
                 (None, _) => { /* Keep Git how it is */ }

+ 2 - 2
src/output/grid_details.rs

@@ -232,12 +232,12 @@ impl<'a> Render<'a> {
         match (self.git, self.dir) {
             (Some(g), Some(d)) => {
                 if !g.has_anything_for(&d.path) {
-                    self.git = None
+                    self.git = None;
                 }
             }
             (Some(g), None) => {
                 if !self.files.iter().any(|f| g.has_anything_for(&f.path)) {
-                    self.git = None
+                    self.git = None;
                 }
             }
             (None, _) => { /* Keep Git how it is */ }

+ 2 - 2
src/theme/lsc.rs

@@ -129,7 +129,7 @@ impl<'var> Pair<'var> {
                 "97" => style = style.fg(BrightGray),
                 "38" => {
                     if let Some(c) = parse_into_high_colour(&mut iter) {
-                        style = style.fg(c)
+                        style = style.fg(c);
                     }
                 }
 
@@ -153,7 +153,7 @@ impl<'var> Pair<'var> {
                 "107" => style = style.on(BrightGray),
                 "48" => {
                     if let Some(c) = parse_into_high_colour(&mut iter) {
-                        style = style.on(c)
+                        style = style.on(c);
                     }
                 }
                 _ => { /* ignore the error and do nothing */ }