From 4577eb365a4a9f75c7abe5c435aaf5ae47b2813b Mon Sep 17 00:00:00 2001 From: Grzegorz Placzek Date: Tue, 3 Oct 2023 11:17:59 +0200 Subject: [PATCH] [#47550] Apply lints --- src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 03fb88c..2b67ba3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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(), ) }; @@ -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(())