Skip to content
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

Eq, PartialEq derive trait on ClientError #909

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

IzawGithub
Copy link

Type of change

Miscellaneous (related to maintenance)

ClientError enum used to store flume error which didn't (at the time) implement equality trait.
This was fixed in #420, and the enum now always store a Request, which itself implement the trait.
There used to be a feature request at #340 to also add equality comparison to ConnectionError, but it internally store a std::io::Error which doesn't implement the traits.

Equality comparison helps for testing code for downstream.

Checklist:

  • Formatted with cargo fmt
  • Make an entry to CHANGELOG.md if it's relevant to the users of the library. If it's not relevant mention why.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant