Fix print macros without newline

This commit is contained in:
Louis Dupré Bertoni 2022-02-16 18:56:09 +02:00 committed by Gary Guo
parent 96fd6c3cae
commit e962a107bb

View File

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