Skip to content

Commit

Permalink
[#47550] Apply lints
Browse files Browse the repository at this point in the history
  • Loading branch information
GPlaczek committed Oct 3, 2023
1 parent 5290013 commit 4577eb3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,12 @@ pub fn mount(
let result = unsafe {
wasi_ext_lib_generated::wasi_ext_mount(
-1,
c_source_path.as_ptr() as *const i8,
c_source_path.as_ptr(),
-1,
c_target_path.as_ptr() as *const i8,
c_filesystem_type.as_ptr() as *const i8,
c_target_path.as_ptr(),
c_filesystem_type.as_ptr(),
opts,
c_data.as_ptr() as *const i8,
c_data.as_ptr(),
)
};

Expand All @@ -398,7 +398,7 @@ pub fn mount(
pub fn umount(path: &str) -> Result<(), ExitCode> {
let c_path = CString::new(path).unwrap();

let result = unsafe { wasi_ext_lib_generated::wasi_ext_umount(c_path.as_ptr() as *const i8) };
let result = unsafe { wasi_ext_lib_generated::wasi_ext_umount(c_path.as_ptr()) };

if result == 0 {
Ok(())
Expand Down

0 comments on commit 4577eb3

Please sign in to comment.