-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing Eq
on struct EmailTrait
in 0.2.6 was a API breaking change.
#29
Comments
+ 1. same occurs when using #[derive(Clone, Debug, Eq, Deserialize, PartialEq, Serialize)]
pub(crate) struct InnerEmailAddress(
#[serde(serialize_with = "mbox_ser", deserialize_with = "mbox_des")] EmailAddress,
); for completness sake, here's the compiler diagnostic message: error[E0277]: the trait bound `EmailAddress: std::cmp::Eq` is not satisfied
--> .../src/email_address.rs:16:74
|
14 | #[derive(Clone, Debug, Eq, Deserialize, PartialEq, Serialize)]
| -- in this derive macro expansion
15 | pub(crate) struct InnerEmailAddress(
16 | #[serde(serialize_with = "mbox_ser", deserialize_with = "mbox_des")] EmailAddress,
| ^^^^^^^^^^^^ the trait `std::cmp::Eq` is not implemented for `EmailAddress`
|
note: required by a bound in `AssertParamIsEq`
--> /opt/rust/rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/cmp.rs:360:31
|
360 | pub struct AssertParamIsEq<T: Eq + ?Sized> {
| ^^ required by this bound in `AssertParamIsEq`
= note: this error originates in the derive macro `Eq` (in Nightly builds, run with -Z macro-backtrace for more info) |
+1 Why was it removed in the first place? (see the problematic diff in eadd524#r144641022) |
I'm dealing with problems from this also, why was it removed? I use it within a HashMap (HashMap<EmailAddress, Uuid>)
|
Fixed in 0.2.8 |
Downstream deps are failing to build.
The text was updated successfully, but these errors were encountered: