about summary refs log tree commit diff
path: root/pkgs/sternenseemann
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2024-03-03 15:06:35 +0100
committerProfpatsch <mail@profpatsch.de>2024-03-03 15:07:23 +0100
commitf21ad92438be2af36aa26a0745792b5d7101bec8 (patch)
treead0aaa7acb9872a444e66aa131c5304f0e45e9f6 /pkgs/sternenseemann
parent176293efe416dbb2c98c55a942388c3d73431a57 (diff)
pkgs/{profpatsch/nman,sternenseemann/rust/temp}: fix rust warnings
Diffstat (limited to 'pkgs/sternenseemann')
-rw-r--r--pkgs/sternenseemann/rust/temp.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/sternenseemann/rust/temp.rs b/pkgs/sternenseemann/rust/temp.rs
index 94424b56..de8627ca 100644
--- a/pkgs/sternenseemann/rust/temp.rs
+++ b/pkgs/sternenseemann/rust/temp.rs
@@ -28,7 +28,7 @@
 use std::ffi::OsStr;
 use std::io::{Error, ErrorKind};
 use std::os::unix::ffi::{OsStrExt, OsStringExt};
-use std::path::{Path, PathBuf};
+use std::path::Path;
 
 // libc interaction
 
@@ -73,7 +73,7 @@ impl AsRef<Path> for Temp {
 
 impl Drop for Temp {
     fn drop(&mut self) {
-        match self.kind {
+        let _ = match self.kind {
             TempKind::File => std::fs::remove_file(self.as_ref()),
             TempKind::Dir => std::fs::remove_dir_all(self.as_ref()),
         };