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 clippy errors #99

Merged
merged 2 commits into from
Jul 17, 2020
Merged

Fix clippy errors #99

merged 2 commits into from
Jul 17, 2020

Conversation

puiterwijk
Copy link
Collaborator

This fixes the Clippy errors that map_err is more succint than or_else
Err

Signed-off-by: Patrick Uiterwijk patrick@puiterwijk.org

Copy link
Member

@ionut-arm ionut-arm left a comment

Choose a reason for hiding this comment

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

Thanks for the changes! That was really quick

@puiterwijk
Copy link
Collaborator Author

@ionut-arm It was a relatively simple change to make :)

This fixes the Clippy errors that map_err is more succint than or_else
Err

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
@puiterwijk
Copy link
Collaborator Author

Seems I missed one in context.rs. This should fix that.

Converting from a Digest to a Digest is useless, and clippy agrees on
that.

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
@puiterwijk
Copy link
Collaborator Author

And next one (also fixed): clippy doesn't like useless type conversions (I guess this is a newer clippy than my version, because mine is totally fine with the code. So it may be a few more iterations).

@puiterwijk puiterwijk changed the title Move from or_else Err to map_err Fix clippy errors Jul 17, 2020
@ionut-arm
Copy link
Member

Indeed, with every iteration of the compiler some lints are added/removed to clippy (usually) and sometimes it breaks things :) We were talking about whether we should make compiler version updates manually to prevent these kind of build failures

@ionut-arm ionut-arm merged commit 71d1ea4 into parallaxsecond:master Jul 17, 2020
tgonzalezorlandoarm pushed a commit to tgonzalezorlandoarm/rust-tss-esapi that referenced this pull request Mar 14, 2024
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