diff --git a/src/cli_utils.rs b/src/cli_utils.rs index 2bcdb6f4d..2860a78fe 100644 --- a/src/cli_utils.rs +++ b/src/cli_utils.rs @@ -312,7 +312,12 @@ impl Printer { Ok(()) } - pub fn print_results<'a, I>(&mut self, languages: I, compact: bool, is_sorted: bool) -> io::Result<()> + pub fn print_results<'a, I>( + &mut self, + languages: I, + compact: bool, + is_sorted: bool, + ) -> io::Result<()> where I: Iterator, { @@ -337,7 +342,8 @@ impl Printer { if self.list_files { self.print_subrow()?; - let mut reports: Vec<&Report> = language.reports.iter().map(|report| &*report).collect(); + let mut reports: Vec<&Report> = + language.reports.iter().map(|report| &*report).collect(); if !is_sorted { reports.sort_by(|&a, &b| a.name.cmp(&b.name)); } @@ -346,9 +352,8 @@ impl Printer { writeln!(self.writer, "{:1$}", report, self.path_length)?; } } else { - let (a, b): (Vec<&Report>, Vec<&Report>) = reports - .iter() - .partition(|&r| r.stats.blobs.is_empty()); + let (a, b): (Vec<&Report>, Vec<&Report>) = + reports.iter().partition(|&r| r.stats.blobs.is_empty()); for reports in &[&a, &b] { let mut first = true; for report in reports.iter() {