Skip to content

Commit

Permalink
Make TokioSleep.reset implementation not public
Browse files Browse the repository at this point in the history
Co-authored-by: Sean McArthur <sean@seanmonstar.com>
  • Loading branch information
daxhuiberts and seanmonstar committed Dec 8, 2023
1 parent 2b1e5d0 commit b82c457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rt/tokio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ impl Future for TokioSleep {
impl Sleep for TokioSleep {}

impl TokioSleep {
pub fn reset(self: Pin<&mut Self>, deadline: Instant) {
fn reset(self: Pin<&mut Self>, deadline: Instant) {
self.project().inner.as_mut().reset(deadline.into());
}
}
Expand Down

0 comments on commit b82c457

Please sign in to comment.