File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -346,10 +346,9 @@ pub trait OpenOptionsExt {
346
346
#[ stable( feature = "open_options_ext" , since = "1.10.0" ) ]
347
347
fn custom_flags ( & mut self , flags : i32 ) -> & mut Self ;
348
348
349
- /// Get the flags of this OpenOptions as [`libc::c_int`].
350
- /// With: [`libc::open`]
349
+ /// Get the flags as [`libc::c_int`].
351
350
///
352
- /// This method allows the reuse of the OpenOptions as flags argument for [`fs::OpenOptions `].
351
+ /// This method allows the reuse of the OpenOptions as flags argument for [`libc::open `].
353
352
///
354
353
/// [`libc::c_int`]: https://docs.rs/libc/*/libc/type.c_int.html
355
354
/// [`libc::open`]: https://docs.rs/libc/*/libc/fn.open.html
Original file line number Diff line number Diff line change @@ -655,6 +655,7 @@ impl OpenOptions {
655
655
pub fn mode ( & mut self , mode : u32 ) {
656
656
self . mode = mode as mode_t ;
657
657
}
658
+
658
659
pub fn as_flags ( & self ) -> io:: Result < c_int > {
659
660
let access_mode = self . get_access_mode ( ) ?;
660
661
let creation_mode = self . get_creation_mode ( ) ?;
You can’t perform that action at this time.
0 commit comments