From e962a107bbcaf42d2c14ba8bd2f832c2effec2ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20Dupr=C3=A9=20Bertoni?= Date: Wed, 16 Feb 2022 18:56:09 +0200 Subject: [PATCH] Fix print macros without newline --- src/print.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/print.rs b/src/print.rs index b0ff76d..26c16a9 100644 --- a/src/print.rs +++ b/src/print.rs @@ -30,7 +30,7 @@ macro_rules! println { macro_rules! print { ($($arg:tt)*) => ({ use core::fmt::Write; - let _ = core::writeln!($crate::print::StdoutPrinter, $($arg)*); + let _ = core::write!($crate::print::StdoutPrinter, $($arg)*); }) } @@ -46,6 +46,6 @@ macro_rules! eprintln { macro_rules! eprint { ($($arg:tt)*) => ({ use core::fmt::Write; - let _ = core::writeln!($crate::print::StderrPrinter, $($arg)*); + let _ = core::write!($crate::print::StderrPrinter, $($arg)*); }) }