diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2022-05-09 11:12:32 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2022-05-09 11:12:32 +0200 |
| commit | 4f212f08cf0edb1fe990c8ca30fef09c27606682 (patch) | |
| tree | 7283ef078a0cb3daae59335a452edfb4590862d9 /library/std/src/sys/unix/time.rs | |
| parent | 8a2fe75d0e6e024aa434e5b9c40adb2567f362b8 (diff) | |
| download | rust-4f212f08cf0edb1fe990c8ca30fef09c27606682.tar.gz rust-4f212f08cf0edb1fe990c8ca30fef09c27606682.zip | |
Use Rust 2021 prelude in std itself.
Diffstat (limited to 'library/std/src/sys/unix/time.rs')
| -rw-r--r-- | library/std/src/sys/unix/time.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/time.rs b/library/std/src/sys/unix/time.rs index ac8355188bb..333182bdad4 100644 --- a/library/std/src/sys/unix/time.rs +++ b/library/std/src/sys/unix/time.rs @@ -2,7 +2,6 @@ use crate::fmt; use crate::time::Duration; pub use self::inner::Instant; -use crate::convert::TryInto; const NSEC_PER_SEC: u64 = 1_000_000_000; pub const UNIX_EPOCH: SystemTime = SystemTime { t: Timespec::zero() }; @@ -127,7 +126,6 @@ impl Timespec { } pub fn to_timespec(&self) -> Option<libc::timespec> { - use crate::convert::TryInto; Some(libc::timespec { tv_sec: self.tv_sec.try_into().ok()?, tv_nsec: self.tv_nsec.try_into().ok()?, |
