From e55773fb808fad7a87239fb3366f098234899ae4 Mon Sep 17 00:00:00 2001 From: Simon Johnston Date: Wed, 31 Jul 2024 13:48:58 -0700 Subject: [PATCH] fix: put back impl Eq --- Cargo.toml | 2 +- README.md | 4 ++++ src/lib.rs | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 080233d..56f427f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "email_address" -version = "0.2.7" +version = "0.2.8" authors = ["Simon Johnston "] description = "A Rust crate providing an implementation of an RFC-compliant `EmailAddress` newtype. " documentation = "https://docs.rs/email_address/" diff --git a/README.md b/README.md index 1f08c05..80c318f 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,10 @@ assert_eq!( ## Changes +### Version 0.2.8 + +* Fix: put back implementation of `Eq`. + ### Version 0.2.7 * Feature: added builder functions to the `Option` type. diff --git a/src/lib.rs b/src/lib.rs index e19a838..606584f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -608,6 +608,8 @@ impl PartialEq for EmailAddress { } } +impl Eq for EmailAddress {} + impl Hash for EmailAddress { fn hash(&self, state: &mut H) { self.0.hash(state);