Add missing mut (#156)

This commit is contained in:
Philipp Oppermann
2016-05-07 15:01:39 +02:00
parent 07d534e4b4
commit 7170c658a7

View File

@@ -414,7 +414,7 @@ To print to the VGA buffer, we just copy the `println!` macro and modify the `pr
macro_rules! print {
($($arg:tt)*) => ({
use core::fmt::Write;
let writer = $crate::vga_buffer::WRITER.lock();
let mut writer = $crate::vga_buffer::WRITER.lock();
writer.write_fmt(format_args!($($arg)*)).unwrap();
});
}