diff --git a/crates/sargon/src/profile/mfa/security_structures/security_shield_builder.rs b/crates/sargon/src/profile/mfa/security_structures/security_shield_builder.rs index 313b1acd9..70d19301a 100644 --- a/crates/sargon/src/profile/mfa/security_structures/security_shield_builder.rs +++ b/crates/sargon/src/profile/mfa/security_structures/security_shield_builder.rs @@ -51,6 +51,8 @@ impl PartialEq for SecurityShieldBuilder { } } +impl Eq for SecurityShieldBuilder {} + impl Clone for SecurityShieldBuilder { fn clone(&self) -> Self { Self { @@ -736,6 +738,20 @@ mod tests { assert_ne!(SUT::sample(), SUT::sample_other()); } + #[test] + fn hash() { + assert_eq!( + radix_rust::hashset![ + SUT::sample(), + SUT::sample(), + SUT::sample_other(), + SUT::sample_other(), + ] + .len(), + 2 + ) + } + #[test] fn clone() { assert_eq!(SUT::sample(), SUT::sample().clone());