Skip to content

Commit

Permalink
chores: fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbarsky committed Aug 3, 2023
1 parent 27f688e commit 4dabaef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tracing-journald/src/socket.rs
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tracing-subscriber/src/fmt/time/mod.rs
Expand Up @@ -48,7 +48,7 @@ pub trait FormatTime {
/// # }
/// ```
pub fn time() -> SystemTime {
SystemTime::default()
SystemTime
}

/// Returns a new `Uptime` timestamp provider.
Expand Down

0 comments on commit 4dabaef

Please sign in to comment.