From 1beeb5a277ee18a8817b85d31595c7980fdf3627 Mon Sep 17 00:00:00 2001 From: Cengiz Can Date: Thu, 29 Jun 2017 10:40:51 +0300 Subject: [PATCH] do not append an extra newline char --- src/librustc_driver/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_driver/lib.rs b/src/librustc_driver/lib.rs index f408316c9f92..58dd21c92924 100644 --- a/src/librustc_driver/lib.rs +++ b/src/librustc_driver/lib.rs @@ -411,7 +411,7 @@ fn show_content_with_pager(content: &String) { // If pager fails for whatever reason, we should still print the content // to standard output if fallback_to_println { - println!("{}", content); + print!("{}", content); } }