Run rustfmt

This commit is contained in:
Philipp Oppermann
2018-06-12 19:26:17 +02:00
parent 8b5be6ebc0
commit 6529cbc674
5 changed files with 20 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
use uart_16550::SerialPort;
use spin::Mutex;
use uart_16550::SerialPort;
lazy_static! {
pub static ref SERIAL1: Mutex<SerialPort> = {
@@ -11,7 +11,10 @@ lazy_static! {
pub fn print(args: ::core::fmt::Arguments) {
use core::fmt::Write;
SERIAL1.lock().write_fmt(args).expect("Printing to serial failed");
SERIAL1
.lock()
.write_fmt(args)
.expect("Printing to serial failed");
}
/// Prints to the host through the serial interface.
@@ -28,4 +31,4 @@ macro_rules! serial_println {
() => (serial_print!("\n"));
($fmt:expr) => (serial_print!(concat!($fmt, "\n")));
($fmt:expr, $($arg:tt)*) => (serial_print!(concat!($fmt, "\n"), $($arg)*));
}
}