mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Run cargo fmt
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
#![test_runner(blog_os::test_runner)]
|
||||
#![reexport_test_harness_main = "test_main"]
|
||||
|
||||
use core::panic::PanicInfo;
|
||||
use blog_os::{println, serial_print, serial_println};
|
||||
use core::panic::PanicInfo;
|
||||
|
||||
#[no_mangle] // don't mangle the name of this function
|
||||
pub extern "C" fn _start() -> ! {
|
||||
|
||||
@@ -2,8 +2,11 @@
|
||||
#![no_main]
|
||||
#![feature(panic_info_message)]
|
||||
|
||||
use core::{fmt::{self, Write}, panic::PanicInfo};
|
||||
use blog_os::{serial_print, serial_println, QemuExitCode, exit_qemu};
|
||||
use blog_os::{exit_qemu, serial_print, serial_println, QemuExitCode};
|
||||
use core::{
|
||||
fmt::{self, Write},
|
||||
panic::PanicInfo,
|
||||
};
|
||||
|
||||
const MESSAGE: &str = "Example panic message from panic_handler test";
|
||||
const PANIC_LINE: u32 = 14; // adjust this when moving the `panic!` call
|
||||
|
||||
Reference in New Issue
Block a user