Thanks to visit codestin.com Credit goes to github.com
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 2358f56 commit 2265befCopy full SHA for 2265bef
library/std/src/sys/unix/fd.rs
@@ -76,7 +76,7 @@ impl FileDesc {
76
let ret = cvt(unsafe {
77
libc::readv(
78
self.as_raw_fd(),
79
- bufs.as_ptr() as *const libc::iovec,
+ bufs.as_mut_ptr() as *mut libc::iovec as *const libc::iovec,
80
cmp::min(bufs.len(), max_iov()) as c_int,
81
)
82
})?;
@@ -132,7 +132,7 @@ impl FileDesc {
132
133
libc::preadv(
134
135
136
137
offset as _,
138
0 commit comments