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

Cleanup error reporting code, minor nits #1699

Merged
merged 2 commits into from
Oct 17, 2023
Merged

Conversation

nyurik
Copy link
Contributor

@nyurik nyurik commented Oct 14, 2023

I gave in into my OCD a bit, tried to use thiserror but that seems like not a good fit, so instead made error enum a bit more readable and far shorter. Also, a few tiny nits with trailing commas. Lastly, consolidated command formater.

Note that in a few places I removed * in if let Some(v) = *v (v is a &Option<T>) -- seems like it is not needed here

I gave in into my OCD a bit, tried to use `thiserror` but that seems like not a good fit, so instead made error enum a bit more readable and far shorter.  Also, a few tiny nits with trailing commas.
@casey
Copy link
Owner

casey commented Oct 17, 2023

Nice, looks good to me!

@casey casey merged commit e01dbda into casey:master Oct 17, 2023
5 checks passed
@nyurik nyurik deleted the error-fmt branch July 28, 2024 17:40
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