Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
anemoneflower committed Feb 1, 2021
1 parent 64278a6 commit 10319cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel-rs/src/proc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,7 @@ pub fn cpuid() -> usize {
impl Kernel {
/// Return ExecutingProc. This is safe because we checked if current struct Proc* exists.
pub unsafe fn myexproc(&self) -> ExecutingProc {
let p = unsafe{ self.myproc() };
let p = unsafe { self.myproc() };
assert!(!p.is_null(), "myexproc: No current proc");
unsafe { ExecutingProc::from_raw(p) }
}
Expand Down

0 comments on commit 10319cf

Please sign in to comment.