From 155037387d7c50dfec1216dccf19315fb997a9b8 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 15 Aug 2018 07:29:03 +0200 Subject: [PATCH] sendmsg: remove unneeded mut Signed-off-by: Igor Gnatenko --- src/sys/socket/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index e9537c4b0c..4ee1aceec7 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -678,7 +678,7 @@ pub fn sendmsg<'a>(fd: RawFd, iov: &[IoVec<&'a [u8]>], cmsgs: &[ControlMessage<' { let mut ofs = 0; for cmsg in cmsgs { - let mut ptr = &mut cmsg_buffer[ofs..]; + let ptr = &mut cmsg_buffer[ofs..]; unsafe { cmsg.encode_into(ptr); }