Don't print empty lines to stderr (#940)

This commit is contained in:
Aleksey Kladov 2016-04-15 17:52:21 +03:00 committed by Marcus Klaas de Vries
parent 7a758ea20a
commit 847bad603e

View File

@ -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);