chores: fix clippy lints (#2673)

This commit is contained in:
David Barsky 2023-08-03 18:38:14 -04:00 committed by Eliza Weisman
parent 111ad87d3d
commit af9ce94246
2 changed files with 2 additions and 2 deletions

View File

@ -68,7 +68,7 @@ pub fn send_one_fd_to<P: AsRef<Path>>(socket: &UnixDatagram, fd: RawFd, path: P)
msg.msg_control = unsafe { cmsg_buffer.buffer.as_mut_ptr() as _ };
msg.msg_controllen = unsafe { CMSG_SPACE(size_of::<RawFd>() as _) as _ };
let mut cmsg: &mut cmsghdr =
let cmsg: &mut cmsghdr =
unsafe { CMSG_FIRSTHDR(&msg).as_mut() }.expect("Control message buffer exhausted");
cmsg.cmsg_level = SOL_SOCKET;

View File

@ -52,7 +52,7 @@ pub trait FormatTime {
/// # }
/// ```
pub fn time() -> SystemTime {
SystemTime::default()
SystemTime
}
/// Returns a new `Uptime` timestamp provider.