@@ -25,41 +25,41 @@ use sys_common::{AsInnerMut, AsInner};
2525pub trait OpenOptionsExt {
2626 /// Overrides the `dwDesiredAccess` argument to the call to `CreateFile`
2727 /// with the specified value.
28- fn desired_access ( & mut self , access : i32 ) -> & mut Self ;
28+ fn desired_access ( & mut self , access : u32 ) -> & mut Self ;
2929
3030 /// Overrides the `dwCreationDisposition` argument to the call to
3131 /// `CreateFile` with the specified value.
3232 ///
3333 /// This will override any values of the standard `create` flags, for
3434 /// example.
35- fn creation_disposition ( & mut self , val : i32 ) -> & mut Self ;
35+ fn creation_disposition ( & mut self , val : u32 ) -> & mut Self ;
3636
3737 /// Overrides the `dwFlagsAndAttributes` argument to the call to
3838 /// `CreateFile` with the specified value.
3939 ///
4040 /// This will override any values of the standard flags on the
4141 /// `OpenOptions` structure.
42- fn flags_and_attributes ( & mut self , val : i32 ) -> & mut Self ;
42+ fn flags_and_attributes ( & mut self , val : u32 ) -> & mut Self ;
4343
4444 /// Overrides the `dwShareMode` argument to the call to `CreateFile` with
4545 /// the specified value.
4646 ///
4747 /// This will override any values of the standard flags on the
4848 /// `OpenOptions` structure.
49- fn share_mode ( & mut self , val : i32 ) -> & mut Self ;
49+ fn share_mode ( & mut self , val : u32 ) -> & mut Self ;
5050}
5151
5252impl OpenOptionsExt for OpenOptions {
53- fn desired_access ( & mut self , access : i32 ) -> & mut OpenOptions {
53+ fn desired_access ( & mut self , access : u32 ) -> & mut OpenOptions {
5454 self . as_inner_mut ( ) . desired_access ( access) ; self
5555 }
56- fn creation_disposition ( & mut self , access : i32 ) -> & mut OpenOptions {
56+ fn creation_disposition ( & mut self , access : u32 ) -> & mut OpenOptions {
5757 self . as_inner_mut ( ) . creation_disposition ( access) ; self
5858 }
59- fn flags_and_attributes ( & mut self , access : i32 ) -> & mut OpenOptions {
59+ fn flags_and_attributes ( & mut self , access : u32 ) -> & mut OpenOptions {
6060 self . as_inner_mut ( ) . flags_and_attributes ( access) ; self
6161 }
62- fn share_mode ( & mut self , access : i32 ) -> & mut OpenOptions {
62+ fn share_mode ( & mut self , access : u32 ) -> & mut OpenOptions {
6363 self . as_inner_mut ( ) . share_mode ( access) ; self
6464 }
6565}
0 commit comments