Skip to content

Commit

Permalink
(lib/sleep_until) allow unused code for Instant::into_inner
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdsk committed Aug 3, 2024
1 parent e5b39fc commit e45e1fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/std/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ impl Instant {
self.0.checked_sub_duration(&duration).map(Instant)
}

// used by platform specific sleep_until implementations, no every platform has one
#[allow(unused)]
pub(crate) fn into_inner(self) -> time::Instant {
self.0
}
Expand Down

0 comments on commit e45e1fd

Please sign in to comment.