diff options
author | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-07-03 19:00:22 +0000 |
---|---|---|
committer | bors[bot] <bors[bot]@users.noreply.github.com> | 2018-07-03 19:00:22 +0000 |
commit | c62f1f82f61295f9608b675570e56892b1d1eeb9 (patch) | |
tree | e5b68e2412265aaa89168f496b73468cb3f5c928 /test | |
parent | 8a9b86eae2e14f5aec94f82ec3de6ca59a804f30 (diff) | |
parent | db4ea2bf78835cb547f8e2ea4d019cfb00e7a481 (diff) | |
download | nix-c62f1f82f61295f9608b675570e56892b1d1eeb9.zip |
Merge #914
914: Make preadv take immutable slice of IoVecs r=asomers a=farnoy
fixes #913
I filled in the CHANGELOG, but I see that it usually links to PRs and not issues, do you want me to change it or remove and leave for you to describe?
This change seems to be strictly backwards-compatible, I didn't have to change the test for it to work.
Co-authored-by: Jakub OkoĊski <jakub@okonski.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/sys/test_uio.rs | 4 |
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(); |