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

Standardize trait implentation on error types #420

Open
DavidLeeds opened this issue Mar 6, 2025 · 1 comment
Open

Standardize trait implentation on error types #420

DavidLeeds opened this issue Mar 6, 2025 · 1 comment

Comments

@DavidLeeds
Copy link

DavidLeeds commented Mar 6, 2025

Standardizing error types with the following traits will help them integrate more smoothly with application error handling:

  1. Clone
  2. Debug
  3. Error
  4. PartialEq
  5. Eq

Errors include:

pub struct DecodeError {

pub struct EncodeError {

Note: need to gate Error implementation on "std" feature.

@XAMPPRocky
Copy link
Collaborator

Thank you for your issue! This sounds like a good idea.

Note: need to gate Error implementation on "std" feature.

I don't think that's true anymore.

https://doc.rust-lang.org/stable/core/error/trait.Error.html

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

No branches or pull requests

2 participants