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

Make less use of thiserror and more unified error handling #496

Merged
merged 1 commit into from
May 4, 2023

Conversation

udoprog
Copy link
Collaborator

@udoprog udoprog commented May 4, 2023

Also remove the error! macro and re-use MissingLocal.

Using thiserror is a bit of a hassle in no_std environments, in principle it would be nice if we could point it to a separate Error trait to implement (or none at all). But to do this we have to replicate thiserror internals. This can't be released in the current state, because how those internals are referenced could change at any point in time.

Therefore its use is being phased out, which is a shame.

@udoprog udoprog added the enhancement New feature or request label May 4, 2023
@udoprog udoprog merged commit 2dcf0d3 into main May 4, 2023
@udoprog udoprog deleted the unified-errors branch May 4, 2023 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant