diff options
| author | Sébastien Marie <semarie@online.fr> | 2022-05-11 04:51:09 +0000 |
|---|---|---|
| committer | Sébastien Marie <semarie@online.fr> | 2022-05-11 04:51:09 +0000 |
| commit | 42f8e1f879487e3b0a48b9635eac11aaf7b672a1 (patch) | |
| tree | 1552016aa6d27512ee1cb1e7736fd1568d54553c /library/std/src/sys/unix/time.rs | |
| parent | 3cadc11d838d5f07b2849ba148dfb83c006fb70f (diff) | |
| download | rust-42f8e1f879487e3b0a48b9635eac11aaf7b672a1.tar.gz rust-42f8e1f879487e3b0a48b9635eac11aaf7b672a1.zip | |
to_timespec could be unused by some targets
Diffstat (limited to 'library/std/src/sys/unix/time.rs')
| -rw-r--r-- | library/std/src/sys/unix/time.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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<libc::timespec> { Some(libc::timespec { tv_sec: self.tv_sec.try_into().ok()?, |
