Fix print macros without newline
This commit is contained in:
parent
96fd6c3cae
commit
e962a107bb
@ -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)*);
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user