From 4f212f08cf0edb1fe990c8ca30fef09c27606682 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Mon, 9 May 2022 11:12:32 +0200 Subject: Use Rust 2021 prelude in std itself. --- library/std/src/sys/unix/time.rs | 2 -- 1 file changed, 2 deletions(-) (limited to 'library/std/src/sys/unix/time.rs') 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 { - use crate::convert::TryInto; Some(libc::timespec { tv_sec: self.tv_sec.try_into().ok()?, tv_nsec: self.tv_nsec.try_into().ok()?, -- cgit 1.4.1-3-g733a5