We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5065a35 commit 7d281ecCopy full SHA for 7d281ec
library/std/src/time.rs
@@ -408,8 +408,8 @@ impl Instant {
408
self.0.checked_sub_duration(&duration).map(Instant)
409
}
410
411
- // used by platform specific `sleep_until` implementations.
412
- #[allow(unused, reason = "not every platform has a specific `sleep_until`")]
+ // Used by platform specific `sleep_until` implementations such as the one used on Linux.
+ #[cfg_attr(not(target_os = "linux"), allow(unused, reason = "not every platform has a specific `sleep_until`"))]
413
pub(crate) fn into_inner(self) -> time::Instant {
414
self.0
415
0 commit comments