Skip to content

Commit aae0392

Browse files
committed
chore: cargo fmt
1 parent c7f501d commit aae0392

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

user/src/bin/fork_exit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#[macro_use]
55
extern crate user_lib;
6-
use user_lib::{exit, fork, wait, waitpid, sched_yield};
6+
use user_lib::{exit, fork, sched_yield, wait, waitpid};
77

88
const MAGIC: i32 = -0x10384;
99

@@ -27,4 +27,4 @@ extern "C" fn main() -> i32 {
2727
println!("waitpid {} ok.", pid);
2828
println!("exit pass.");
2929
0
30-
}
30+
}

user/src/bin/forktest_simple.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ pub extern "C" fn main() -> i32 {
2525
println!("child process pid = {}, exit code = {}", pid, exit_code);
2626
0
2727
}
28-
}
28+
}

user/src/bin/phil_din_mutex.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ pub extern "C" fn main() -> i32 {
106106
}
107107
println!("philosopher dining problem with mutex test passed!");
108108
0
109-
}
109+
}

0 commit comments

Comments
 (0)