Skip to content

Commit e23e390

Browse files
committed
Fix the mutability requirement on Socket::send_msg
1 parent fa3155a commit e23e390

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/net/connection/socket

1 file changed

+1
-1
lines changed

library/std/src/sys/net/connection/socket/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ impl Socket {
385385
}
386386

387387
#[cfg(any(target_os = "android", target_os = "linux", target_os = "cygwin"))]
388-
pub fn send_msg(&self, msg: &mut libc::msghdr) -> io::Result<usize> {
388+
pub fn send_msg(&self, msg: &libc::msghdr) -> io::Result<usize> {
389389
let n = cvt(unsafe { libc::sendmsg(self.as_raw_fd(), msg, 0) })?;
390390
Ok(n as usize)
391391
}

0 commit comments

Comments
 (0)