File tree 4 files changed +437
-9
lines changed 4 files changed +437
-9
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ libc_bitflags!(
24
24
MNT_AUTOMOUNTED ;
25
25
/// filesystem is journaled
26
26
MNT_JOURNALED ;
27
- /// Don't allow user extended attributes
27
+ /// Don't allow user extended attributes
28
28
MNT_NOUSERXATTR ;
29
- /// filesystem should defer writes
29
+ /// filesystem should defer writes
30
30
MNT_DEFWRITE ;
31
31
/// don't block unmount if not responding
32
32
MNT_NOBLOCK ;
@@ -93,17 +93,18 @@ pub fn mount<
93
93
}
94
94
}
95
95
96
- let res = source. with_nix_path ( |s|
96
+ let res = source. with_nix_path ( |s| {
97
97
target. with_nix_path ( |t| {
98
98
with_opt_nix_path ( data, |d| unsafe {
99
99
libc:: mount (
100
100
s. as_ptr ( ) ,
101
101
t. as_ptr ( ) ,
102
102
flags. bits ( ) ,
103
- d. cast_mut ( ) as * mut libc :: c_void ,
103
+ d. cast_mut ( ) . cast ( ) ,
104
104
)
105
105
} )
106
- } ) ) ???;
106
+ } )
107
+ } ) ???;
107
108
108
109
Errno :: result ( res) . map ( drop)
109
110
}
You can’t perform that action at this time.
0 commit comments