[pve-devel] [PATCH proxmox-perl-rs 05/15] pve-rs: tfa: clippy: borrowed expression impls the required traits

Lukas Wagner l.wagner at proxmox.com
Thu Jun 20 13:50:11 CEST 2024


Signed-off-by: Lukas Wagner <l.wagner at proxmox.com>
---
 pve-rs/src/tfa.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pve-rs/src/tfa.rs b/pve-rs/src/tfa.rs
index 9381ef0..7588d6d 100644
--- a/pve-rs/src/tfa.rs
+++ b/pve-rs/src/tfa.rs
@@ -1048,7 +1048,7 @@ impl proxmox_tfa::api::OpenUserChallengeData for UserAccess {
 
     fn remove(&self, userid: &str) -> Result<bool, Error> {
         let path = challenge_data_path(userid, self.is_debug());
-        match std::fs::remove_file(&path) {
+        match std::fs::remove_file(path) {
             Ok(()) => Ok(true),
             Err(err) if err.kind() == io::ErrorKind::NotFound => Ok(false),
             Err(err) => Err(err.into()),
-- 
2.39.2





More information about the pve-devel mailing list