We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2984b commit bdc90b3Copy full SHA for bdc90b3
crates/bitwarden-crypto/src/signing/signed_object.rs
@@ -215,9 +215,8 @@ mod tests {
215
field1: "Test message".to_string(),
216
};
217
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();
+ SignedObject::from_cose(&<CoseSign1Bytes>::from(SIGNED_OBJECT)).unwrap();
+ let verifying_key = VerifyingKey::from_cose(&<CoseKeyBytes>::from(VERIFYING_KEY)).unwrap();
221
let namespace = SigningNamespace::ExampleNamespace;
222
let payload: TestMessage = signed_object
223
.verify_and_unwrap(&verifying_key, &namespace)
0 commit comments