Skip to content

Commit

Permalink
Prepare for smarter lint in 1.78.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cbiffle committed Mar 6, 2024
1 parent 48028c7 commit bcbf626
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions os/src/exec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ impl Notify {
&self,
) -> impl Future<Output = ()> + Captures<&'_ Self> {
let mut setup = false;
self.until(move || core::mem::replace(&mut setup, true))
self.until(move || mem::replace(&mut setup, true))
}
}

Expand Down Expand Up @@ -998,7 +998,7 @@ impl Future for YieldCpu {
type Output = ();

fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
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.
Expand Down

0 comments on commit bcbf626

Please sign in to comment.