From ab75085f3250e3e8f35b949032e742f1bea70bec Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Sun, 26 Jan 2025 09:35:23 -0800 Subject: [PATCH] Fix cargo warnings in userland. --- rust/sys/denali/src/bin/denali.rs | 2 +- rust/sys/yellowstone/src/server.rs | 3 --- yunq/rust/src/codegen.rs | 4 ---- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/rust/sys/denali/src/bin/denali.rs b/rust/sys/denali/src/bin/denali.rs index ef4be28..a5f0e68 100644 --- a/rust/sys/denali/src/bin/denali.rs +++ b/rust/sys/denali/src/bin/denali.rs @@ -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 } diff --git a/rust/sys/yellowstone/src/server.rs b/rust/sys/yellowstone/src/server.rs index 7daea1f..8ec36b8 100644 --- a/rust/sys/yellowstone/src/server.rs +++ b/rust/sys/yellowstone/src/server.rs @@ -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; diff --git a/yunq/rust/src/codegen.rs b/yunq/rust/src/codegen.rs index 01bf96b..9682e23 100644 --- a/yunq/rust/src/codegen.rs +++ b/yunq/rust/src/codegen.rs @@ -431,12 +431,8 @@ pub fn generate_code(ast: &Vec) -> 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! {}