Skip to content

Commit 42f8e1f

Browse files
committedMay 11, 2022
to_timespec could be unused by some targets
1 parent 3cadc11 commit 42f8e1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎library/std/src/sys/unix/time.rs

+1
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ impl Timespec {
125125
Some(Timespec::new(secs, nsec as i64))
126126
}
127127

128+
#[allow(dead_code)]
128129
pub fn to_timespec(&self) -> Option<libc::timespec> {
129130
Some(libc::timespec {
130131
tv_sec: self.tv_sec.try_into().ok()?,

0 commit comments

Comments
 (0)