-
Notifications
You must be signed in to change notification settings - Fork 47
Clippy warning fixes #112
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
Clippy warning fixes #112
Conversation
SiegeLord
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This looks mostly like a positive change, but I would prefer one of the diffs reverted. I don't recall if that's a specific clippy setting for it, maybe clippy::redundant_field_names, but feel free to allow it in lib.rs
| .as_ref() | ||
| .and_then(|d| d.path().to_str()) | ||
| .map(|s| s.into()), | ||
| data_tempdir: data_tempdir, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you revert this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be reverted now, added #([allow(...)] for the remaining clippy lints
SiegeLord
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Fixes to most warnings reported by
cargo clippyAlso fixes warnings from cargo test
tempfile::TempDir::into_path: use TempDir::keep()Remaining two issues are about function having too many parameters and are not as easily fixed.