Skip to content

Commit

Permalink
time: drop needless get_unchecked_mut in TimerEntry::poll_elapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobarbolini committed Apr 25, 2024
1 parent c953fba commit 6344d54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tokio/src/runtime/time/entry.rs
Expand Up @@ -556,9 +556,7 @@ impl TimerEntry {
self.as_mut().reset(deadline, true);
}

let this = unsafe { self.get_unchecked_mut() };

this.inner().state.poll(cx.waker())
self.inner().state.poll(cx.waker())
}

pub(crate) fn driver(&self) -> &super::Handle {
Expand Down

0 comments on commit 6344d54

Please sign in to comment.