Skip to content

Commit cf1a401

Browse files
authored
Merge pull request #303 from Timmmm/user/timh/improve_verbose_pass_fail
Improve verbose pass/fail message
2 parents 435b200 + a6445ca commit cf1a401

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/main.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -328,13 +328,14 @@ pub fn run_opt_config(printer: &mut Printer, opt: &Opt, config: Config) -> Resul
328328
}
329329
}
330330

331-
if pass {
332-
if opt.verbose {
333-
printer.print_info(&format!("pass '{}'", path.to_string_lossy()))?;
334-
}
335-
} else {
336-
all_pass = false;
331+
if opt.verbose {
332+
printer.print_info(&format!(
333+
"{} '{}'",
334+
if pass { "pass" } else { "fail" },
335+
path.display()
336+
))?;
337337
}
338+
all_pass &= pass;
338339
}
339340

340341
Ok(all_pass && not_obsolete)

0 commit comments

Comments
 (0)