Fix cargo warnings in userland.
This commit is contained in:
parent
d777b8f4ab
commit
ab75085f32
|
@ -27,6 +27,6 @@ extern "C" fn main() -> z_err_t {
|
|||
|
||||
let thread = spawn_irq_thread(ahci_controller.clone());
|
||||
|
||||
thread.join();
|
||||
thread.join().expect("Failed to wait on irq thread.");
|
||||
0
|
||||
}
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
use core::cell::RefCell;
|
||||
|
||||
use alloc::rc::Rc;
|
||||
use alloc::sync::Arc;
|
||||
use alloc::{collections::BTreeMap, string::String};
|
||||
use mammoth::sync::Mutex;
|
||||
|
|
|
@ -431,12 +431,8 @@ pub fn generate_code(ast: &Vec<Decl>) -> String {
|
|||
|
||||
let interface_imports = if any_interfaces(ast) {
|
||||
quote! {
|
||||
use alloc::boxed::Box;
|
||||
use core::ffi::c_void;
|
||||
use mammoth::cap::Capability;
|
||||
use mammoth::syscall;
|
||||
use mammoth::thread;
|
||||
use yunq::server::YunqServer;
|
||||
}
|
||||
} else {
|
||||
quote! {}
|
||||
|
|
Loading…
Reference in New Issue