We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
enum Error
As part of my implementation, I define a custom Error, one variant which wraps an Error enum that is generated by PDL.
In some of my tests, I check that I get the expected error types, which is simplified if I derive PartialEq for my Error enum.
Problem is, I have to implement PartialEq for the PDL-generated Error enum if I want one of my error variants to wrap it.
Is it feasible to derive PartialEq for Error enums?
The text was updated successfully, but these errors were encountered:
Another note: I am happy to create a PR to implement this!
Sorry, something went wrong.
Derive the PartialEq, Eq traits for pdl_runtime::Error
dafdb70
Fixes google#71
fe001bf
Fixes #71
Successfully merging a pull request may close this issue.
As part of my implementation, I define a custom Error, one variant which wraps an Error enum that is generated by PDL.
In some of my tests, I check that I get the expected error types, which is simplified if I derive PartialEq for my Error enum.
Problem is, I have to implement PartialEq for the PDL-generated Error enum if I want one of my error variants to wrap it.
Is it feasible to derive PartialEq for Error enums?
The text was updated successfully, but these errors were encountered: