From bcbf626e06e2f5dca4a2b1157b5dbc1fdd809536 Mon Sep 17 00:00:00 2001 From: "Cliff L. Biffle" Date: Tue, 5 Mar 2024 19:16:45 -0800 Subject: [PATCH] Prepare for smarter lint in 1.78. The unused_qualifications lint in current nightly has started spotting an unused qualification that was previously ignored. I've gone ahead and fixed it to avoid any surprises later in the summer. --- os/src/exec.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/src/exec.rs b/os/src/exec.rs index a2705f2..4f5ca97 100644 --- a/os/src/exec.rs +++ b/os/src/exec.rs @@ -816,7 +816,7 @@ impl Notify { &self, ) -> impl Future + Captures<&'_ Self> { let mut setup = false; - self.until(move || core::mem::replace(&mut setup, true)) + self.until(move || mem::replace(&mut setup, true)) } } @@ -998,7 +998,7 @@ impl Future for YieldCpu { type Output = (); fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { - if core::mem::replace(&mut self.polled, true) { + if mem::replace(&mut self.polled, true) { Poll::Ready(()) } else { // Ensure that we get called next round.