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);