From 42f8e1f879487e3b0a48b9635eac11aaf7b672a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Marie?= Date: Wed, 11 May 2022 04:51:09 +0000 Subject: [PATCH] to_timespec could be unused by some targets --- library/std/src/sys/unix/time.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/std/src/sys/unix/time.rs b/library/std/src/sys/unix/time.rs index df95f1494fd..f99c453a3a8 100644 --- a/library/std/src/sys/unix/time.rs +++ b/library/std/src/sys/unix/time.rs @@ -125,6 +125,7 @@ impl Timespec { Some(Timespec::new(secs, nsec as i64)) } + #[allow(dead_code)] pub fn to_timespec(&self) -> Option { Some(libc::timespec { tv_sec: self.tv_sec.try_into().ok()?,