mirror of
				https://git.proxmox.com/git/proxmox-perl-rs
				synced 2025-10-31 07:43:40 +00:00 
			
		
		
		
	pve-rs: tfa: clippy: borrowed expression impls the required traits
Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
This commit is contained in:
		
							parent
							
								
									02d170a5b5
								
							
						
					
					
						commit
						824b39583d
					
				| @ -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()), | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Lukas Wagner
						Lukas Wagner