Skip to content

Commit 56d027f

Browse files
committed
Fix a clippy::needless_pass_by_ref_mut warning
This is a direct commit to the r0.26 branch, because the offending code has been removed in master.
1 parent df3c7a6 commit 56d027f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/uio.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ impl<'a> IoVec<&'a mut [u8]> {
201201
pub fn from_mut_slice(buf: &'a mut [u8]) -> IoVec<&'a mut [u8]> {
202202
IoVec(
203203
libc::iovec {
204-
iov_base: buf.as_ptr() as *mut c_void,
204+
iov_base: buf.as_mut_ptr() as *mut c_void,
205205
iov_len: buf.len() as size_t,
206206
},
207207
PhantomData,

0 commit comments

Comments
 (0)