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

Fix uppercase acronyms and use thiserror From derives #182

Merged
merged 2 commits into from
Apr 6, 2021

Conversation

puiterwijk
Copy link
Member

No description provided.

This fixes the error enum cases to no longer use uppercase acronyms.

Signed-off-by: Patrick Uiterwijk <[email protected]>
The thiserror crate has a feature where it can automatically derive the
From traits for error types by marking the cases.
Use this code, to minimize on hand-written code.

Signed-off-by: Patrick Uiterwijk <[email protected]>
Copy link
Contributor

@lkatalin lkatalin left a comment

Choose a reason for hiding this comment

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

Ah, this is great! I also just fixed these acronyms in my draft PR. : ) I like shortening the from here as well. I can rebase on top of this.

@puiterwijk puiterwijk merged commit 6c776a5 into keylime:master Apr 6, 2021
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.

4 participants