Skip to content

Commit

Permalink
fix: put back impl Eq
Browse files Browse the repository at this point in the history
  • Loading branch information
johnstonskj committed Jul 31, 2024
1 parent 7657614 commit e55773f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "email_address"
version = "0.2.7"
version = "0.2.8"
authors = ["Simon Johnston <johnstonskj@gmail.com>"]
description = "A Rust crate providing an implementation of an RFC-compliant `EmailAddress` newtype. "
documentation = "https://docs.rs/email_address/"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,8 @@ impl PartialEq for EmailAddress {
}
}

impl Eq for EmailAddress {}

impl Hash for EmailAddress {
fn hash<H: std::hash::Hasher>(&self, state: &mut H) {
self.0.hash(state);
Expand Down

0 comments on commit e55773f

Please sign in to comment.