Merge pull request #602 from crumblingstatue/report_newline

Don't print an unnecessary newline after printing format report
This commit is contained in:
Marcus Klaas de Vries 2015-11-14 19:23:00 +01:00
commit 7fe9272849

View File

@ -440,7 +440,7 @@ pub fn format(file: &Path, config: &Config, mode: WriteMode) -> FileMap {
pub fn run(file: &Path, write_mode: WriteMode, config: &Config) {
let mut result = format(file, config, write_mode);
println!("{}", fmt_lines(&mut result, config));
print!("{}", fmt_lines(&mut result, config));
let write_result = filemap::write_all_files(&result, write_mode, config);