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

chore: shift std::error impls to core #1888

Merged
merged 4 commits into from
Jan 4, 2025
Merged

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Jan 4, 2025

more core error impls

all of those could now use thiserror but I'd like to open a good first issue for this instead

Self::FromHexError(err) => std::error::Error::source(err),
Self::ParseError(err) => std::error::Error::source(err),
Self::ParseIntError(err) => core::error::Error::source(err),
Self::FromHexError(err) => core::error::Error::source(err),
Copy link
Member

Choose a reason for hiding this comment

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

these are wrong btw, the source is err itself, not the source of the source

Copy link
Member Author

Choose a reason for hiding this comment

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

right, updating

@mattsse mattsse force-pushed the matt/more-core-error-impls branch from 98dbafb to 8fcd91a Compare January 4, 2025 13:56
@mattsse mattsse merged commit 6a5f72b into main Jan 4, 2025
26 checks passed
@mattsse mattsse deleted the matt/more-core-error-impls branch January 4, 2025 14:18
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