summaryrefslogtreecommitdiff
path: root/test/sys
diff options
context:
space:
mode:
authorJakub Okoński <jakub@okonski.org>2018-06-11 05:56:35 +0200
committerJakub Okoński <jakub@okonski.org>2018-07-03 20:17:22 +0200
commitdb4ea2bf78835cb547f8e2ea4d019cfb00e7a481 (patch)
treee5b68e2412265aaa89168f496b73468cb3f5c928 /test/sys
parent8a9b86eae2e14f5aec94f82ec3de6ca59a804f30 (diff)
downloadnix-db4ea2bf78835cb547f8e2ea4d019cfb00e7a481.zip
Make preadv take immutable slice of IoVecs, fixes #913
Diffstat (limited to 'test/sys')
-rw-r--r--test/sys/test_uio.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/sys/test_uio.rs b/test/sys/test_uio.rs
index c6331f1d..9f56c810 100644
--- a/test/sys/test_uio.rs
+++ b/test/sys/test_uio.rs
@@ -182,9 +182,9 @@ fn test_preadv() {
{
// Borrow the buffers into IoVecs and preadv into them
- let mut iovecs: Vec<_> = buffers.iter_mut().map(
+ let iovecs: Vec<_> = buffers.iter_mut().map(
|buf| IoVec::from_mut_slice(&mut buf[..])).collect();
- assert_eq!(Ok(100), preadv(file.as_raw_fd(), &mut iovecs, 100));
+ assert_eq!(Ok(100), preadv(file.as_raw_fd(), &iovecs, 100));
}
let all = buffers.concat();