1
Fork 0

Remove raw pointer from OpenOptions struct

Otherwise it is not Send and Sync anymore
This commit is contained in:
Paul Dicker 2016-01-20 08:41:20 +01:00
parent 9c569189c8
commit ae30294771
2 changed files with 9 additions and 3 deletions

View file

@ -2264,6 +2264,12 @@ mod tests {
assert_eq!(check!(fs::metadata(&tmpdir.join("h"))).len(), 9);
}
#[test]
fn _assert_send_sync() {
fn _assert_send_sync<T: Send + Sync>() {}
_assert_send_sync::<OpenOptions>();
}
#[test]
fn binary_file() {
let mut bytes = [0; 1024];