Fix fd test case

This commit is contained in:
Michael Howell 2020-12-10 15:05:22 -07:00
parent a50811a214
commit 08b70eda2c

View File

@ -3,7 +3,7 @@ use core::mem::ManuallyDrop;
#[test]
fn limit_vector_count() {
let stdout = ManuallyDrop::new(FileDesc { fd: 1 });
let stdout = ManuallyDrop::new(unsafe { FileDesc { fd: 1 } });
let bufs = (0..1500).map(|_| IoSlice::new(&[])).collect::<Vec<_>>();
assert!(stdout.write_vectored(&bufs).is_ok());
}