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 3731613 commit f87ea28
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 @@ -1640,13 +1640,13 @@ pub fn recvmmsg<'a, I, S>(
.collect())
}

unsafe fn read_mhdr<'a, 'b, S>(
unsafe fn read_mhdr<'a, S>(
mhdr: msghdr,
r: isize,
msg_controllen: usize,
address: S,
cmsg_buffer: &'a mut Option<&'b mut Vec<u8>>
) -> RecvMsg<'b, S>
cmsg_buffer: &mut Option<&'a mut Vec<u8>>
) -> RecvMsg<'a, S>
where S: SockaddrLike
{
// The cast is not unnecessary on all platforms.
Expand Down

0 comments on commit f87ea28

Please sign in to comment.