Skip to content

Implement PartialEq, Eq on error enums - #638

Open
deadbaed wants to merge 1 commit into
str4d:mainfrom
deadbaed:push-voxlzlqmsxzo
Open

Implement PartialEq, Eq on error enums#638
deadbaed wants to merge 1 commit into
str4d:mainfrom
deadbaed:push-voxlzlqmsxzo

Conversation

@deadbaed

@deadbaed deadbaed commented Aug 4, 2026

Copy link
Copy Markdown

The biggest change was to move the io::Error variants to io::ErrorKind, and keep original error messages as strings.

Some manual Clone impls were moved to #[derive(Clone)]

Context

The motivation is for a project I am working on using rage, and I need PartialEq for tests. I initially only needed for {Encrypt,Decrypt}Error, but I thought while I was at it, let's have all error enums have PartialEq and Eq.

The biggest change was to move the `io::Error` variants to `io::ErrorKind`,
and keep original error messages as strings.

Some manual `Clone` impls were moved to `#[derive(Clone)]`
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