update, and 'cargo fmt --all -- --check' passed
@@ -11,7 +11,7 @@ extern crate log;
use {
alloc::{boxed::Box, string::String, sync::Arc, vec::Vec},
core::{future::Future, pin::Pin},
- kernel_hal::{MMUFlags},
+ kernel_hal::MMUFlags,
linux_object::{
fs::{vfs::FileSystem, INodeExt},
loader::LinuxElfLoader,
@@ -19,14 +19,11 @@ use {
thread::ThreadExt,
},
linux_syscall::Syscall,
- zircon_object::{task::*},
+ zircon_object::task::*,
};
#[cfg(target_arch = "riscv64")]
-use {
- kernel_hal::UserContext,
- zircon_object::object::KernelObject,
-};
+use {kernel_hal::UserContext, zircon_object::object::KernelObject};
#[cfg(target_arch = "x86_64")]
use kernel_hal::GeneralRegs;
@@ -91,7 +88,6 @@ async fn new_thread(thread: CurrentThread) {
trace!("back from user: {:#x?}", cx);
// handle trap/interrupt/syscall
-
#[cfg(target_arch = "x86_64")]
match cx.trap_num {
0x100 => handle_syscall(&thread, &mut cx.general).await,
