Remove raw pointer from OpenOptions struct
Otherwise it is not Send and Sync anymore
This commit is contained in:
parent
9c569189c8
commit
ae30294771
2 changed files with 9 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue