mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
Run rustfmt
This commit is contained in:
@@ -203,9 +203,12 @@ Compiling for our new target will use Linux conventions (I'm not quite sure why,
|
|||||||
|
|
||||||
#[lang = "panic_fmt"] // define a function that should be called on panic
|
#[lang = "panic_fmt"] // define a function that should be called on panic
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn rust_begin_panic(_msg: core::fmt::Arguments,
|
pub extern "C" fn rust_begin_panic(
|
||||||
_file: &'static str, _line: u32, _column: u32) -> !
|
_msg: core::fmt::Arguments,
|
||||||
{
|
_file: &'static str,
|
||||||
|
_line: u32,
|
||||||
|
_column: u32,
|
||||||
|
) -> ! {
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
#![no_std] // don't link the Rust standard library
|
#![no_std] // don't link the Rust standard library
|
||||||
#![no_main] // disable all Rust-level entry points
|
#![no_main] // disable all Rust-level entry points
|
||||||
|
|
||||||
extern crate volatile;
|
|
||||||
extern crate rlibc;
|
extern crate rlibc;
|
||||||
extern crate spin;
|
extern crate spin;
|
||||||
|
extern crate volatile;
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
extern crate lazy_static;
|
extern crate lazy_static;
|
||||||
|
|
||||||
@@ -24,9 +24,11 @@ pub extern "C" fn _start() -> ! {
|
|||||||
/// This function is called on panic.
|
/// This function is called on panic.
|
||||||
#[lang = "panic_fmt"]
|
#[lang = "panic_fmt"]
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn rust_begin_panic(_msg: core::fmt::Arguments,
|
pub extern "C" fn rust_begin_panic(
|
||||||
|
_msg: core::fmt::Arguments,
|
||||||
_file: &'static str,
|
_file: &'static str,
|
||||||
_line: u32,
|
_line: u32,
|
||||||
_column: u32) -> ! {
|
_column: u32,
|
||||||
|
) -> ! {
|
||||||
loop {}
|
loop {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user