From afed3bc84bbb81d4e2bfebb6f1605e5512b2351f Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sat, 6 Sep 2025 16:17:05 +0200 Subject: [PATCH] Fix a couple of warnings --- src/context/context.rs | 1 - src/debugger.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/context/context.rs b/src/context/context.rs index 89ed81f46a..6f242e2efe 100644 --- a/src/context/context.rs +++ b/src/context/context.rs @@ -67,7 +67,6 @@ pub enum HardBlockedReason { }, // TODO: PageFaultOom? NotYetStarted, - PtraceStop, } const CONTEXT_NAME_CAPAC: usize = 32; diff --git a/src/debugger.rs b/src/debugger.rs index dd4e0e9e9d..5e3884948a 100644 --- a/src/debugger.rs +++ b/src/debugger.rs @@ -212,8 +212,6 @@ pub unsafe fn debugger(target_id: Option) { // Super unsafe due to page table switching and raw pointers! #[cfg(target_arch = "x86_64")] pub unsafe fn debugger(target_id: Option<*const RwSpinlock>) { - use core::sync::atomic::Ordering; - use alloc::sync::Arc; use hashbrown::HashSet;