Skip to content

Commit

Permalink
clippy: elide lifetime parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rtzoeller committed Dec 2, 2022
1 parent 23729f6 commit ee52d89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sys/socket/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1394,13 +1394,13 @@ pub fn recvmmsg<'a, I>(
.collect())
}

unsafe fn read_mhdr<'a, 'b>(
unsafe fn read_mhdr<'a>(
mhdr: msghdr,
r: isize,
msg_controllen: usize,
address: sockaddr_storage,
cmsg_buffer: &'a mut Option<&'b mut Vec<u8>>
) -> RecvMsg<'b> {
cmsg_buffer: &mut Option<&'a mut Vec<u8>>
) -> RecvMsg<'a> {
let cmsghdr = {
if mhdr.msg_controllen > 0 {
// got control message(s)
Expand Down

0 comments on commit ee52d89

Please sign in to comment.