diff options
author | Bryant Mairs <bryantmairs@google.com> | 2017-12-15 14:35:12 -0800 |
---|---|---|
committer | Bryant Mairs <bryantmairs@google.com> | 2017-12-20 07:05:04 -0800 |
commit | 09a79fa1c5e67a07b07a160dca01474ec324ecf6 (patch) | |
tree | befc32ac410a116375bde7aab3fc3c2efa20ec95 | |
parent | 68859b9c1897c747263f5844cf87d9f4ac9e6f04 (diff) | |
download | nix-09a79fa1c5e67a07b07a160dca01474ec324ecf6.zip |
Remove useless vec![]
-rw-r--r-- | test/sys/test_uio.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/sys/test_uio.rs b/test/sys/test_uio.rs index a2b68d07..76597790 100644 --- a/test/sys/test_uio.rs +++ b/test/sys/test_uio.rs @@ -212,7 +212,7 @@ fn test_process_vm_readv() { Ok(Parent { child }) => { close(w).unwrap(); // wait for child - read(r, &mut vec![0u8]).unwrap(); + read(r, &mut [0u8]).unwrap(); close(r).unwrap(); let ptr = vector.as_ptr() as usize; |