Fix cargo warnings in userland.

This commit is contained in:
Drew Galbraith 2025-01-26 09:35:23 -08:00
parent d777b8f4ab
commit ab75085f32
3 changed files with 1 additions and 8 deletions

View File

@ -27,6 +27,6 @@ extern "C" fn main() -> z_err_t {
let thread = spawn_irq_thread(ahci_controller.clone()); let thread = spawn_irq_thread(ahci_controller.clone());
thread.join(); thread.join().expect("Failed to wait on irq thread.");
0 0
} }

View File

@ -1,6 +1,3 @@
use core::cell::RefCell;
use alloc::rc::Rc;
use alloc::sync::Arc; use alloc::sync::Arc;
use alloc::{collections::BTreeMap, string::String}; use alloc::{collections::BTreeMap, string::String};
use mammoth::sync::Mutex; use mammoth::sync::Mutex;

View File

@ -431,12 +431,8 @@ pub fn generate_code(ast: &Vec<Decl>) -> String {
let interface_imports = if any_interfaces(ast) { let interface_imports = if any_interfaces(ast) {
quote! { quote! {
use alloc::boxed::Box;
use core::ffi::c_void;
use mammoth::cap::Capability; use mammoth::cap::Capability;
use mammoth::syscall; use mammoth::syscall;
use mammoth::thread;
use yunq::server::YunqServer;
} }
} else { } else {
quote! {} quote! {}