Skip to content

Commit cd58539

Browse files
committed
fix macros, take II
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent aaa1b6c commit cd58539

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Diff for: src/macros.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ macro_rules! print {
8686
#[macro_export]
8787
macro_rules! println {
8888
() => ($crate::print!("\n"));
89-
($($arg:tt)*) => ($crate::io::_print(format_args!($($arg)*)))
89+
($($arg:tt)*) => ({
90+
$crate::io::_print(format_args!($($arg)*)).await;
91+
$crate::io::_print(format_args!("\n")).await;
92+
})
9093
}
9194

9295
/// Prints to the standard error.
@@ -158,6 +161,7 @@ macro_rules! eprintln {
158161
($($arg:tt)*) => (
159162
async {
160163
$crate::io::_eprint(format_args!($($arg)*)).await;
164+
$crate::io::_eprint(format_args!("\n")).await;
161165
}
162166
);
163167
}

0 commit comments

Comments
 (0)