File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1339,7 +1339,7 @@ impl EmitterWriter {
1339
1339
}
1340
1340
1341
1341
let mut dst = self . dst . writable ( ) ;
1342
- match write ! ( dst, " \n " ) {
1342
+ match writeln ! ( dst) {
1343
1343
Err ( e) => panic ! ( "failed to emit error: {}" , e) ,
1344
1344
_ => {
1345
1345
match dst. flush ( ) {
@@ -1598,7 +1598,7 @@ fn emit_to_destination(rendered_buffer: &[Vec<StyledString>],
1598
1598
dst. reset ( ) ?;
1599
1599
}
1600
1600
if !short_message && ( !lvl. is_failure_note ( ) || pos != rendered_buffer. len ( ) - 1 ) {
1601
- write ! ( dst, " \n " ) ?;
1601
+ writeln ! ( dst) ?;
1602
1602
}
1603
1603
}
1604
1604
dst. flush ( ) ?;
Original file line number Diff line number Diff line change @@ -497,7 +497,7 @@ impl<'a> Printer<'a> {
497
497
498
498
pub fn print_newline ( & mut self , amount : isize ) -> io:: Result < ( ) > {
499
499
debug ! ( "NEWLINE {}" , amount) ;
500
- let ret = write ! ( self . out, " \n " ) ;
500
+ let ret = writeln ! ( self . out) ;
501
501
self . pending_indentation = 0 ;
502
502
self . indent ( amount) ;
503
503
ret
You can’t perform that action at this time.
0 commit comments