mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 03:43:23 +00:00
Apply the new format policy
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
60e996ea2f
commit
3494bc45af
@ -130,10 +130,11 @@ pub fn call_aster_main() -> ! {
|
||||
}
|
||||
|
||||
fn run_ktests(test_whitelist: Option<&[&str]>, crate_whitelist: Option<&[&str]>) -> ! {
|
||||
use crate::arch::qemu::{exit_qemu, QemuExitCode};
|
||||
use alloc::{boxed::Box, string::ToString};
|
||||
use core::any::Any;
|
||||
|
||||
use crate::arch::qemu::{exit_qemu, QemuExitCode};
|
||||
|
||||
let fn_catch_unwind = &(unwinding::panic::catch_unwind::<(), fn()>
|
||||
as fn(fn()) -> Result<(), Box<(dyn Any + Send + 'static)>>);
|
||||
|
||||
|
@ -7,8 +7,9 @@ pub type Result<T> = core::result::Result<T, crate::error::Error>;
|
||||
pub(crate) use alloc::{boxed::Box, sync::Arc, vec::Vec};
|
||||
pub(crate) use core::any::Any;
|
||||
|
||||
pub use crate::vm::{Paddr, Vaddr};
|
||||
|
||||
pub use crate::early_print as print;
|
||||
pub use crate::early_println as println;
|
||||
pub use aster_main::aster_main;
|
||||
|
||||
pub use crate::{
|
||||
early_print as print, early_println as println,
|
||||
vm::{Paddr, Vaddr},
|
||||
};
|
||||
|
Reference in New Issue
Block a user