From 8c8984edcb2a9d0b6234bbaaed8aedaca1de6865 Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Fri, 9 Jun 2023 18:03:00 -0400 Subject: [PATCH] fido-common: Derive (Partial)Eq for public_key types --- crates/fido-common/src/credential/public_key.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/fido-common/src/credential/public_key.rs b/crates/fido-common/src/credential/public_key.rs index 66e98e4..48641bc 100644 --- a/crates/fido-common/src/credential/public_key.rs +++ b/crates/fido-common/src/credential/public_key.rs @@ -81,7 +81,7 @@ pub struct Descriptor { /// > the RP. /// Due to deprecation, the `icon` URL is omitted. See . #[cfg_eval] -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq, Eq)] #[cfg_attr( feature = "serde", serde_as, @@ -118,7 +118,7 @@ pub struct UserEntity { /// > This `PublicKeyCredentialRpEntity` data structure describes a Relying /// > Party with which the new public key credential will be associated. -#[derive(Debug, Clone)] +#[derive(Debug, Clone, PartialEq, Eq)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub struct RelyingPartyEntity { /// > A unique identifier for the Relying Party entity.