Skip to content

Commit 0434fbd

Browse files
zecakehbilelmoussaoui
authored andcommitted
client: Fix more clippy warnings
1 parent 096ccdb commit 0434fbd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/src/crypto/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ mod test {
4646
let salt = &[0x92, 0xf4, 0xc0, 0x34, 0x0f, 0x5f, 0x36, 0xf9];
4747
let iteration_count = 1782;
4848
let password = b"test";
49-
let (key, iv) = legacy_derive_key_and_iv(&password, Ok(()), &salt, iteration_count);
49+
let (key, iv) = legacy_derive_key_and_iv(password, Ok(()), salt, iteration_count);
5050
assert_eq!(key.as_ref(), &expected_key[..]);
5151
assert_eq!(iv, &expected_iv[..]);
5252
}

client/src/portal/api/legacy_keyring.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ mod tests {
245245
let path = PathBuf::from(env!("CARGO_MANIFEST_DIR"))
246246
.join("fixtures")
247247
.join("legacy.keyring");
248-
let blob = std::fs::read(&path)?;
248+
let blob = std::fs::read(path)?;
249249
let keyring = Keyring::try_from(blob.as_slice())?;
250250
let password = b"test";
251251
let secret = Secret::from(password.to_vec());

0 commit comments

Comments
 (0)