We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa3155a commit e23e390Copy full SHA for e23e390
library/std/src/sys/net/connection/socket/unix.rs
@@ -385,7 +385,7 @@ impl Socket {
385
}
386
387
#[cfg(any(target_os = "android", target_os = "linux", target_os = "cygwin"))]
388
- pub fn send_msg(&self, msg: &mut libc::msghdr) -> io::Result<usize> {
+ pub fn send_msg(&self, msg: &libc::msghdr) -> io::Result<usize> {
389
let n = cvt(unsafe { libc::sendmsg(self.as_raw_fd(), msg, 0) })?;
390
Ok(n as usize)
391
0 commit comments