about summary refs log tree commit diff
path: root/pkgs/sternenseemann/rust/temp.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/sternenseemann/rust/temp.rs')
-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()),
         };