Skip to content

Conversation

joshuamegnauth54
Copy link
Contributor

Hello awesome bytemuck devs!

Rust's Error trait is available in core as of 1.81. This small patch adds a crate feature to derive core::error::Error instead of bringing in std.

I added an extra feature instead of changing the original derive so that it doesn't affect users on older Rust versions. I also accounted for the case when both features are enabled for some reason.

@Lokathor
Copy link
Owner

Lokathor commented Apr 8, 2025

I don't really use the Error trait myself, but I am wondering if we should override the information methods to give better information, but that's a concern for another day.

@Lokathor Lokathor merged commit 90db360 into Lokathor:main Apr 8, 2025
14 checks passed
@Lokathor Lokathor added semver-minor semver minor change not yet released labels Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor semver minor change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants