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

PartialEq for errors #23

Merged

Conversation

Buckram123
Copy link
Contributor

I would like to add PartialEq to errors in Anybuf. Comparing with matches!() works, but it is a bit more verbose. And even more verbose to compare BufanyError::UnsupportedWireType(u8)

Copy link
Owner

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@webmaster128 webmaster128 merged commit 6a79533 into webmaster128:main Dec 5, 2024
@webmaster128
Copy link
Owner

Released as part of https://github.com/webmaster128/anybuf/releases/tag/v0.5.1

@Buckram123
Copy link
Contributor Author

Released as part of https://github.com/webmaster128/anybuf/releases/tag/v0.5.1

Nice, thank you!

@webmaster128
Copy link
Owner

Please note that RepeatedStringError is currently not public such that you cannot compare against that one. Will fix soon.

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.

2 participants