mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-02 07:20:35 +00:00
chores: fix clippy lints (#2673)
This commit is contained in:
parent
111ad87d3d
commit
af9ce94246
@ -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;
|
||||
|
@ -52,7 +52,7 @@ pub trait FormatTime {
|
||||
/// # }
|
||||
/// ```
|
||||
pub fn time() -> SystemTime {
|
||||
SystemTime::default()
|
||||
SystemTime
|
||||
}
|
||||
|
||||
/// Returns a new `Uptime` timestamp provider.
|
||||
|
Loading…
x
Reference in New Issue
Block a user