From f21ad92438be2af36aa26a0745792b5d7101bec8 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 3 Mar 2024 15:06:35 +0100 Subject: pkgs/{profpatsch/nman,sternenseemann/rust/temp}: fix rust warnings --- pkgs/sternenseemann/rust/temp.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgs/sternenseemann/rust') 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 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()), }; -- cgit 1.4.1