Format code

This commit is contained in:
Piotr Siuszko 2021-09-26 21:18:38 +02:00
parent 172c967095
commit 51351e054a
4 changed files with 5 additions and 8 deletions

View File

@ -11,9 +11,9 @@ use x86_64::instructions::hlt;
mod color;
mod serial;
mod vga_buffer;
mod testable;
mod utils;
mod vga_buffer;
#[cfg(test)]
fn test_runner(tests: &[&dyn Fn()]) {
@ -30,7 +30,6 @@ fn trivial_assertion() {
assert_eq!(1, 1);
}
#[cfg(not(test))]
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {

View File

@ -17,7 +17,6 @@ pub fn exit_qemu(exit_code: QemuExitCode) {
}
pub fn print_logo() {
let text = r###"
_ _ __
_ |_ |_) _ _|_/ \(_

View File

@ -100,7 +100,6 @@ impl fmt::Write for Writer {
}
}
pub fn change_color(color: Color) {
WRITER.lock().color_code = ColorCode::new(color, Color::Black);
}