Skip to content

Commit c2557d0

Browse files
dvdskcuviper
andauthored
improve allow(unused)
Co-authored-by: Josh Stone <[email protected]>
1 parent 3001f82 commit c2557d0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/std/src/time.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,7 @@ impl Instant {
409409
}
410410

411411
// 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`")]
414413
pub(crate) fn into_inner(self) -> time::Instant {
415414
self.0
416415
}

0 commit comments

Comments
 (0)