Skip to content

Commit

Permalink
Don't print empty lines to stderr (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
matklad authored and marcusklaas committed Apr 15, 2016
1 parent 7a758ea commit 847bad6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Expand Up @@ -440,7 +440,9 @@ pub enum Input {

pub fn run(input: Input, config: &Config) -> Summary {
let (mut summary, file_map, report) = format_input(input, config);
msg!("{}", report);
if report.has_warnings() {
msg!("{}", report);
}

let mut out = stdout();
let write_result = filemap::write_all_files(&file_map, &mut out, config);
Expand Down

0 comments on commit 847bad6

Please sign in to comment.