Transition the code to Rust 2018

This commit is contained in:
Philipp Oppermann
2018-11-18 13:44:21 +01:00
parent 5091491a1f
commit 6e5ebc4bd9
10 changed files with 16 additions and 48 deletions

View File

@@ -157,9 +157,9 @@ macro_rules! print {
/// Like the `print!` macro in the standard library, but prints to the VGA text buffer.
#[macro_export]
macro_rules! println {
() => (print!("\n"));
($fmt:expr) => (print!(concat!($fmt, "\n")));
($fmt:expr, $($arg:tt)*) => (print!(concat!($fmt, "\n"), $($arg)*));
() => ($crate::print!("\n"));
($fmt:expr) => ($crate::print!(concat!($fmt, "\n")));
($fmt:expr, $($arg:tt)*) => ($crate::print!(concat!($fmt, "\n"), $($arg)*));
}
/// Prints the given formatted string to the VGA text buffer through the global `WRITER` instance.