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