From ba85c384bf006565a53d0131f208c889f85d1430 Mon Sep 17 00:00:00 2001 From: ddnomad Date: Thu, 1 Feb 2024 16:02:01 +0000 Subject: [PATCH] Fix #62 --- src/parser/vcard/component.rs | 2 +- src/property.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parser/vcard/component.rs b/src/parser/vcard/component.rs index 41beecc..c17468f 100644 --- a/src/parser/vcard/component.rs +++ b/src/parser/vcard/component.rs @@ -9,7 +9,7 @@ extern crate serde; use crate::parser::{Component, ParserError}; use crate::property::{Property, PropertyParser}; -#[derive(Debug, Clone, Default)] +#[derive(Debug, Clone, Default, Eq, PartialEq, Hash)] #[cfg_attr(feature = "serde-derive", derive(serde::Serialize, serde::Deserialize))] /// A VCARD contact. pub struct VcardContact { diff --git a/src/property.rs b/src/property.rs index 6b0bdc1..d71d0e0 100644 --- a/src/property.rs +++ b/src/property.rs @@ -63,7 +63,7 @@ pub enum PropertyError { } /// A VCARD/ICAL property. -#[derive(Debug, Clone, Default)] +#[derive(Debug, Clone, Default, Eq, PartialEq, Hash)] #[cfg_attr(feature = "serde-derive", derive(serde::Serialize, serde::Deserialize))] pub struct Property { /// Property name.