File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
branches/stable/src/libstd Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ refs/heads/tmp: e06d2ad9fcd5027bcaac5b08fc9aa39a49d0ecd3
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: c0221c8897db309a79990367476177b1230bb264
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: 9c569189c8b8b5d635b6704c489a8410c81570a0
32
+ refs/heads/stable: ae30294771e3c5c65a2d70be0e09b5bec2490c66
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
34
34
refs/tags/1.1.0: bc3c16f09287e5545c1d3f76b7abd54f2eca868b
35
35
refs/tags/1.2.0: f557861f822c34f07270347b94b5280de20a597e
Original file line number Diff line number Diff line change @@ -2264,6 +2264,12 @@ mod tests {
2264
2264
assert_eq ! ( check!( fs:: metadata( & tmpdir. join( "h" ) ) ) . len( ) , 9 ) ;
2265
2265
}
2266
2266
2267
+ #[ test]
2268
+ fn _assert_send_sync ( ) {
2269
+ fn _assert_send_sync < T : Send + Sync > ( ) { }
2270
+ _assert_send_sync :: < OpenOptions > ( ) ;
2271
+ }
2272
+
2267
2273
#[ test]
2268
2274
fn binary_file ( ) {
2269
2275
let mut bytes = [ 0 ; 1024 ] ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ pub struct OpenOptions {
69
69
attributes : c:: DWORD ,
70
70
share_mode : c:: DWORD ,
71
71
security_qos_flags : c:: DWORD ,
72
- security_attributes : c :: LPSECURITY_ATTRIBUTES ,
72
+ security_attributes : usize , // FIXME: should be a reference
73
73
}
74
74
75
75
#[ derive( Clone , PartialEq , Eq , Debug ) ]
@@ -170,7 +170,7 @@ impl OpenOptions {
170
170
share_mode : c:: FILE_SHARE_READ | c:: FILE_SHARE_WRITE | c:: FILE_SHARE_DELETE ,
171
171
attributes : 0 ,
172
172
security_qos_flags : 0 ,
173
- security_attributes : ptr :: null_mut ( ) ,
173
+ security_attributes : 0 ,
174
174
}
175
175
}
176
176
@@ -187,7 +187,7 @@ impl OpenOptions {
187
187
pub fn attributes ( & mut self , attrs : u32 ) { self . attributes = attrs; }
188
188
pub fn security_qos_flags ( & mut self , flags : u32 ) { self . security_qos_flags = flags; }
189
189
pub fn security_attributes ( & mut self , attrs : c:: LPSECURITY_ATTRIBUTES ) {
190
- self . security_attributes = attrs;
190
+ self . security_attributes = attrs as usize ;
191
191
}
192
192
193
193
fn get_access_mode ( & self ) -> io:: Result < c:: DWORD > {
You can’t perform that action at this time.
0 commit comments