Skip to content

Commit

Permalink
replace platforms specific cfg's with allow unused
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdsk committed Aug 2, 2024
1 parent 9477dad commit d59d09d
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions library/std/src/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -404,19 +404,7 @@ impl Instant {
}

// used by platform specific sleep_until implementations, no every platform has one
#[cfg(any(
target_vendor = "apple",
target_os = "freebsd",
target_os = "netbsd",
target_os = "linux",
target_os = "android",
target_os = "solaris",
target_os = "illumos",
target_os = "dragonfly",
target_os = "hurd",
target_os = "fuchsia",
target_os = "wasi",
))]
#[allow(unused)]
pub(crate) fn into_inner(self) -> time::Instant {
self.0
}
Expand Down

0 comments on commit d59d09d

Please sign in to comment.