@@ -39,7 +39,7 @@ pub struct OpenOptions {
39
39
}
40
40
41
41
#[ derive( Copy , Clone , Debug , Default ) ]
42
- pub struct FileTimes { }
42
+ pub struct FileTimes ( ( ) ) ;
43
43
44
44
#[ derive( Clone , Debug , PartialEq , Eq ) ]
45
45
pub struct FilePermissions ;
@@ -50,7 +50,7 @@ pub struct FileType {
50
50
}
51
51
52
52
#[ derive( Debug ) ]
53
- pub struct DirBuilder { }
53
+ pub struct DirBuilder ( ( ) ) ;
54
54
55
55
impl FileAttr {
56
56
/// Creates a FileAttr by getting data from an opened file.
@@ -217,13 +217,12 @@ impl File {
217
217
// Open in read only mode
218
218
unsafe { vex_sdk:: vexFileOpen ( path. as_ptr ( ) , c"" . as_ptr ( ) ) }
219
219
} else if opts. write && opts. append {
220
- // Open in read/ write and append mode
220
+ // Open in write and append mode
221
221
unsafe { vex_sdk:: vexFileOpenWrite ( path. as_ptr ( ) ) }
222
222
} else if opts. write && opts. truncate {
223
- // Open in read/ write mode
223
+ // Open in write mode
224
224
unsafe { vex_sdk:: vexFileOpenCreate ( path. as_ptr ( ) ) }
225
225
} else if opts. write {
226
- // Open in read/write and overwrite mode
227
226
unsafe {
228
227
// Open in read/write and append mode
229
228
let fd = vex_sdk:: vexFileOpenWrite ( path. as_ptr ( ) ) ;
0 commit comments