diff --git a/src/arch/x86_64/device/vga_console.rs b/src/arch/x86_64/device/vga_console.rs index b65368b..d595f3c 100644 --- a/src/arch/x86_64/device/vga_console.rs +++ b/src/arch/x86_64/device/vga_console.rs @@ -36,7 +36,7 @@ pub enum Color { #[derive(Clone, Copy, Debug)] pub struct CharStyle(u8); impl CharStyle { - const fn new(foreground: Color, background: Color) -> CharStyle { + pub const fn new(foreground: Color, background: Color) -> CharStyle { CharStyle((background as u8) << 4 | (foreground as u8)) } }