]> git.proxmox.com Git - pve-lxc-syscalld.git/commitdiff
clippy: mutability fixup
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 16 Oct 2023 11:22:59 +0000 (13:22 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 16 Oct 2023 11:22:59 +0000 (13:22 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/io/seq_packet.rs

index 14b7313ce4c5a710e17a75b1532dece46e034393..bb0093096fdcf3f899417cd9f9f663483c0d588c 100644 (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(),