Skip to content

Commit 51b5910

Browse files
committed
feat: fix code
1 parent 47e45ee commit 51b5910

File tree

4 files changed

+437
-9
lines changed

4 files changed

+437
-9
lines changed

src/mount/apple.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ libc_bitflags!(
2424
MNT_AUTOMOUNTED;
2525
/// filesystem is journaled
2626
MNT_JOURNALED;
27-
/// Don't allow user extended attributes
27+
/// Don't allow user extended attributes
2828
MNT_NOUSERXATTR;
29-
/// filesystem should defer writes
29+
/// filesystem should defer writes
3030
MNT_DEFWRITE;
3131
/// don't block unmount if not responding
3232
MNT_NOBLOCK;
@@ -93,17 +93,18 @@ pub fn mount<
9393
}
9494
}
9595

96-
let res = source.with_nix_path(|s|
96+
let res = source.with_nix_path(|s| {
9797
target.with_nix_path(|t| {
9898
with_opt_nix_path(data, |d| unsafe {
9999
libc::mount(
100100
s.as_ptr(),
101101
t.as_ptr(),
102102
flags.bits(),
103-
d.cast_mut() as *mut libc::c_void,
103+
d.cast_mut().cast(),
104104
)
105105
})
106-
}))???;
106+
})
107+
})???;
107108

108109
Errno::result(res).map(drop)
109110
}

0 commit comments

Comments
 (0)