File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -292,9 +292,7 @@ impl Instant {
292
292
Some ( Instant { t : self . t . checked_sub_duration ( other) ? } )
293
293
}
294
294
295
- // reason for allow(unused): this is needed by the `sleep_until` implementation
296
- // for some unix platforms not all.
297
- #[ allow( unused) ]
295
+ #[ allow( unused, reason = "needed by the `sleep_until` on some unix platforms" ) ]
298
296
pub ( crate ) fn into_timespec ( self ) -> Timespec {
299
297
self . t
300
298
}
Original file line number Diff line number Diff line change @@ -409,8 +409,7 @@ impl Instant {
409
409
}
410
410
411
411
// used by platform specific `sleep_until` implementations.
412
- // reason for #[allow(unused)]: not every platform has a specific `sleep_until`.
413
- #[ allow( unused) ]
412
+ #[ allow( unused, reason = "not every platform has a specific `sleep_until`" ) ]
414
413
pub ( crate ) fn into_inner ( self ) -> time:: Instant {
415
414
self . 0
416
415
}
You can’t perform that action at this time.
0 commit comments