clippy: mutability fixup

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2023-10-16 13:22:59 +02:00
parent a14430f3e7
commit e3501427d8

View File

@ -116,7 +116,7 @@ impl SeqPacketSocket {
let mut msg = AssertSendSync(libc::msghdr {
msg_name: ptr::null_mut(),
msg_namelen: 0,
msg_iov: iov.as_ptr() as _,
msg_iov: iov.as_mut_ptr() as _,
msg_iovlen: iov.len(),
msg_control: cmsg_buf.as_mut_ptr() as *mut std::ffi::c_void,
msg_controllen: cmsg_buf.len(),