diff options
author | Carl Lerche <me@carllerche.com> | 2015-03-28 17:05:47 -0700 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2015-03-28 17:05:47 -0700 |
commit | 15256eb1c2a599913c0f5881ff07240389771d59 (patch) | |
tree | 82778a2f988798e45d45e3f649a384929e7076b1 /test/sys | |
parent | c252b4d534cb5713a9850ae44c26d07bdeeda5dc (diff) | |
download | nix-15256eb1c2a599913c0f5881ff07240389771d59.zip |
Track Rust nightly
Diffstat (limited to 'test/sys')
-rw-r--r-- | test/sys/test_uio.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/sys/test_uio.rs b/test/sys/test_uio.rs index e27f3b2c..8f467001 100644 --- a/test/sys/test_uio.rs +++ b/test/sys/test_uio.rs @@ -33,7 +33,7 @@ fn test_writev() { let written = write_res.ok().unwrap(); // Check whether we written all data assert_eq!(to_write.len(), written); - let read_res = read(reader, read_buf.as_mut_slice()); + let read_res = read(reader, &mut read_buf[..]); // Successful read assert!(read_res.is_ok()); let read = read_res.ok().unwrap() as usize; @@ -62,7 +62,7 @@ fn test_readv() { } let mut iovecs = Vec::with_capacity(storage.len()); for v in storage.iter_mut() { - iovecs.push(IoVec::from_mut_slice(v.as_mut_slice())); + iovecs.push(IoVec::from_mut_slice(&mut v[..])); } let pipe_res = pipe(); assert!(pipe_res.is_ok()); @@ -71,7 +71,7 @@ fn test_readv() { let write_res = write(writer, &to_write); // Successful write assert!(write_res.is_ok()); - let read_res = readv(reader, iovecs.as_mut_slice()); + let read_res = readv(reader, &mut iovecs[..]); assert!(read_res.is_ok()); let read = read_res.ok().unwrap(); // Check whether we've read all data |