Skip to content

Commit

Permalink
chores: fix clippy lints (#2673)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbarsky committed Sep 26, 2023
1 parent 6182d7b commit 82ab565
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub trait FormatTime {
/// # }
/// ```
pub fn time() -> SystemTime {
SystemTime::default()
SystemTime
}

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

0 comments on commit 82ab565

Please sign in to comment.