Skip to content

Commit 27242aa

Browse files
committed
Panic in Hermit clock_gettime
1 parent fb27476 commit 27242aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/std/src/sys/time/hermit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::time::Duration;
66

77
fn clock_gettime(clock: hermit_abi::clockid_t) -> Timespec {
88
let mut t = hermit_abi::timespec { tv_sec: 0, tv_nsec: 0 };
9-
let _ = unsafe { hermit_abi::clock_gettime(clock, &raw mut t) };
9+
unsafe { hermit_abi::clock_gettime(clock, &raw mut t) }.unwrap();
1010
Timespec::new(t.tv_sec, t.tv_nsec.into()).unwrap()
1111
}
1212

0 commit comments

Comments
 (0)