Skip to content

Commit

Permalink
fixed fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangHanDong committed Dec 28, 2023
1 parent 6e98ce2 commit ec6d41a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/system/time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl SystemTime {
crate::cutils::cerr(unsafe {
libc::clock_gettime(libc::CLOCK_BOOTTIME, spec.as_mut_ptr())
})?;
// SAFETY: The `libc::clock_gettime` will correctly initialize `spec`,
// SAFETY: The `libc::clock_gettime` will correctly initialize `spec`,
// otherwise it will return early with the `?` operator.
let spec = unsafe { spec.assume_init() };
Ok(spec.into())
Expand Down

0 comments on commit ec6d41a

Please sign in to comment.