Skip to content

Commit bdc90b3

Browse files
quextenHinton
andauthored
Update crates/bitwarden-crypto/src/signing/signed_object.rs
Co-authored-by: Oscar Hinton <[email protected]>
1 parent 3c2984b commit bdc90b3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/bitwarden-crypto/src/signing/signed_object.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,8 @@ mod tests {
215215
field1: "Test message".to_string(),
216216
};
217217
let signed_object =
218-
SignedObject::from_cose(&Into::<CoseSign1Bytes>::into(SIGNED_OBJECT)).unwrap();
219-
let verifying_key =
220-
VerifyingKey::from_cose(&Into::<CoseKeyBytes>::into(VERIFYING_KEY)).unwrap();
218+
SignedObject::from_cose(&<CoseSign1Bytes>::from(SIGNED_OBJECT)).unwrap();
219+
let verifying_key = VerifyingKey::from_cose(&<CoseKeyBytes>::from(VERIFYING_KEY)).unwrap();
221220
let namespace = SigningNamespace::ExampleNamespace;
222221
let payload: TestMessage = signed_object
223222
.verify_and_unwrap(&verifying_key, &namespace)

0 commit comments

Comments
 (0)