Skip to content

Commit 605e914

Browse files
Correction for a problem found by the newest clippy.
Signed-off-by: Robert Drazkowski <Robert.Drazkowski@globallogic.com>
1 parent 933d8ef commit 605e914

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/core/basic_client.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -800,10 +800,7 @@ impl BasicClient {
800800
ciphertext: &[u8],
801801
salt: Option<&[u8]>,
802802
) -> Result<Vec<u8>> {
803-
let salt = match salt {
804-
Some(salt) => Some(Zeroizing::new(salt.to_vec())),
805-
None => None,
806-
};
803+
let salt = salt.map(|salt| Zeroizing::new(salt.to_vec()));
807804
let crypto_provider = self.can_provide_crypto()?;
808805

809806
let op = PsaAsymDecrypt {

0 commit comments

Comments
 (0)