Skip to content

Commit 9b3549a

Browse files
committed
Apply cleanup
1 parent 7ee0278 commit 9b3549a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/bitwarden-core/src/platform/generate_fingerprint.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ pub enum FingerprintError {
4242

4343
pub(crate) fn generate_fingerprint(input: &FingerprintRequest) -> Result<String, FingerprintError> {
4444
let key = STANDARD.decode(&input.public_key)?;
45-
let key = SpkiPublicKeyBytes::from(key);
46-
Ok(fingerprint(&input.fingerprint_material, &key)?)
45+
Ok(fingerprint(&input.fingerprint_material, &key.into())?)
4746
}
4847

4948
/// Errors that can occur when computing a fingerprint.

0 commit comments

Comments
 (0)