Skip to content

Commit f10c6ce

Browse files
committed
(lib/sleep_until) allow unused code for Instant::into_inner
1 parent 90c4839 commit f10c6ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/std/src/time.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,8 @@ impl Instant {
404404
self.0.checked_sub_duration(&duration).map(Instant)
405405
}
406406

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

0 commit comments

Comments
 (0)