Skip to content

Conversation

@Neutroni
Copy link
Contributor

Fixes to most warnings reported by cargo clippy

  • Fixes to documentation indentation
  • Removal of unnecessary lifetime annotations
  • range contains lint
  • comparison to empty lint
    Also fixes warnings from cargo test
  • unnecessary parentheses around closure body
  • use of deprecated method tempfile::TempDir::into_path: use TempDir::keep()

Remaining two issues are about function having too many parameters and are not as easily fixed.

Copy link
Owner

@SiegeLord SiegeLord left a 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,
Copy link
Owner

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?

Copy link
Contributor Author

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

Copy link
Owner

@SiegeLord SiegeLord left a comment

Choose a reason for hiding this comment

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

Thanks!

@SiegeLord SiegeLord merged commit c6ae242 into SiegeLord:master Dec 15, 2025
1 check passed
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