add cargo fmt in Makefile, and exec make fmt
This commit is contained in:
parent
e87bb122a8
commit
ab99bc8c28
10 changed files with 36 additions and 40 deletions
|
@ -4,7 +4,7 @@
|
|||
#[macro_use]
|
||||
extern crate user_lib;
|
||||
|
||||
use core::ptr::{read_volatile,null_mut};
|
||||
use core::ptr::{null_mut, read_volatile};
|
||||
|
||||
#[no_mangle]
|
||||
fn main() -> i32 {
|
||||
|
@ -12,7 +12,7 @@ fn main() -> i32 {
|
|||
println!("Into Test load_fault, we will insert an invalid load operation...");
|
||||
println!("Kernel should kill this application!");
|
||||
unsafe {
|
||||
let _i=read_volatile(null_mut::<u8>());
|
||||
let _i = read_volatile(null_mut::<u8>());
|
||||
}
|
||||
0
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ fn main() -> i32 {
|
|||
println!("Into Test store_fault, we will insert an invalid store operation...");
|
||||
println!("Kernel should kill this application!");
|
||||
unsafe {
|
||||
null_mut::<u8>().write_volatile(1);
|
||||
null_mut::<u8>().write_volatile(1);
|
||||
}
|
||||
0
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue