mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 00:43:24 +00:00
Adjust the format of imports in Asterinas
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
92e488e727
commit
cfcef6965a
@ -7,13 +7,13 @@
|
||||
pub mod kcmdline;
|
||||
pub mod memory_region;
|
||||
|
||||
use alloc::{string::String, vec::Vec};
|
||||
|
||||
use kcmdline::KCmdlineArg;
|
||||
use spin::Once;
|
||||
|
||||
use self::memory_region::MemoryRegion;
|
||||
|
||||
use alloc::{string::String, vec::Vec};
|
||||
use spin::Once;
|
||||
|
||||
/// ACPI information from the bootloader.
|
||||
///
|
||||
/// The boot crate can choose either providing the raw RSDP physical address or
|
||||
@ -119,9 +119,10 @@ pub fn call_aster_main() -> ! {
|
||||
}
|
||||
#[cfg(ktest)]
|
||||
{
|
||||
use crate::arch::qemu::{exit_qemu, QemuExitCode};
|
||||
use alloc::{boxed::Box, string::ToString};
|
||||
use core::any::Any;
|
||||
|
||||
use crate::arch::qemu::{exit_qemu, QemuExitCode};
|
||||
crate::init();
|
||||
let fn_catch_unwind = &(unwinding::panic::catch_unwind::<(), fn()>
|
||||
as fn(fn()) -> Result<(), Box<(dyn Any + Send + 'static)>>);
|
||||
|
Reference in New Issue
Block a user