mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Add missing mut (#156)
This commit is contained in:
@@ -414,7 +414,7 @@ To print to the VGA buffer, we just copy the `println!` macro and modify the `pr
|
|||||||
macro_rules! print {
|
macro_rules! print {
|
||||||
($($arg:tt)*) => ({
|
($($arg:tt)*) => ({
|
||||||
use core::fmt::Write;
|
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();
|
writer.write_fmt(format_args!($($arg)*)).unwrap();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user