]> git.proxmox.com Git - proxmox-fuse.git/commitdiff
clippy fixes
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 13 Feb 2024 12:56:56 +0000 (13:56 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 13 Feb 2024 12:57:04 +0000 (13:57 +0100)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/session.rs
src/sys.rs

index 13044ff24d8455511972951ff8bebf67502d3baa..bd92282242fd71d6523bca6adb999023c9fce988 100644 (file)
@@ -578,11 +578,11 @@ impl Drop for FuseSession {
     fn drop(&mut self) {
         unsafe {
             if self.mounted {
-                let _ = sys::fuse_session_unmount(self.session);
+                sys::fuse_session_unmount(self.session);
             }
 
             if !self.session.is_null() {
-                let _ = sys::fuse_session_destroy(self.session);
+                sys::fuse_session_destroy(self.session);
             }
         }
     }
@@ -654,8 +654,8 @@ impl Unpin for Fuse {}
 impl Drop for Fuse {
     fn drop(&mut self) {
         unsafe {
-            let _ = sys::fuse_session_unmount(self.session.as_ptr());
-            let _ = sys::fuse_session_destroy(self.session.as_ptr());
+            sys::fuse_session_unmount(self.session.as_ptr());
+            sys::fuse_session_destroy(self.session.as_ptr());
         }
     }
 }
index 38be724d0928e4fd417f7efe8581d7389de893e1..06c596dc3f1158c1b85da64592da9ef5947fd448 100644 (file)
@@ -343,7 +343,7 @@ impl ReplyBuf {
     pub fn new(request: Request, size: usize) -> Self {
         let buffer = unsafe {
             let data = std::alloc::alloc(std::alloc::Layout::array::<u8>(size).unwrap());
-            Vec::from_raw_parts(data as *mut u8, size, size)
+            Vec::from_raw_parts(data, size, size)
         };
         Self {
             buffer,