Skip to content

Commit

Permalink
Fix fd test case
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Dec 10, 2020
1 parent a50811a commit 08b70ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/sys/unix/fd/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

0 comments on commit 08b70ed

Please sign in to comment.