From 96f53a10064197ab5f334e0cd5a80348b3baf150 Mon Sep 17 00:00:00 2001 From: vdang Date: Tue, 20 Jun 2023 10:43:50 +0200 Subject: [PATCH] Format with clippy --- plugins/stronghold/src/kdf.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/stronghold/src/kdf.rs b/plugins/stronghold/src/kdf.rs index fc76c31a..f8ddf237 100644 --- a/plugins/stronghold/src/kdf.rs +++ b/plugins/stronghold/src/kdf.rs @@ -45,7 +45,7 @@ impl KeyDerivation { fn create_or_get_salt(salt: &mut [u8], salt_path: &PathBuf) { if salt_path.is_file() { // Get existing salt - let tmp = std::fs::read(&salt_path).unwrap(); + let tmp = std::fs::read(salt_path).unwrap(); salt.clone_from_slice(&tmp); } else { // Generate new salt