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 errors/warnings reported by clippy #210

Merged
merged 2 commits into from
Feb 7, 2023
Merged

Conversation

danbev
Copy link
Contributor

@danbev danbev commented Feb 5, 2023

Signed-off-by: Daniel Bevenius daniel.bevenius@gmail.com

Summary

This commit attempts to address the errors/warnings reported by cargo clippy.

Release Note

NONE

Documentation

NONE

This commit attempts to address the errors/warnings reported by cargo
clippy.

Signed-off-by: Daniel Bevenius <daniel.bevenius@gmail.com>
Fix the clippy error `result_large_err` in the proper way, instead of
just ignoring it.

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
Copy link
Member

@flavio flavio 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 submission. I made a change to it, because I didn't want to just ignore the result_large_err error. I fixed it properly as suggested by clippy, by Box-ing the TUF error. That just required few map_err(Box::new) transformations when the code had to deal with the TUF library originating this error type

@flavio flavio merged commit c93a437 into sigstore:main Feb 7, 2023
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