Skip to content

Conversation

@lutter
Copy link
Collaborator

@lutter lutter commented Jan 9, 2026

This PR fixes all clippy warnings and requires that 'cargo clippy' passes in CI.

The commits with title "Run 'cargo clippy --fix'" were generated by running just that; since clippy only applies safe mechanical transforms with --fix, they should not require much review. Most of the other commits are very small and address one specific lint.

The first half of the PR (up to the first change to justfile) only changes actual code since clippy is run against the default target (binary and library)

The second half only changes test code by now running cargo clippy --all-targets

Copy link
Member

@isum isum left a comment

Choose a reason for hiding this comment

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

Nice!

.write(true)
.append(false)
.create(true)
.truncate(true)
Copy link
Member

Choose a reason for hiding this comment

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

This does not seem to be a lint fix. Why is this necessary?

lutter added 28 commits January 12, 2026 13:41
This applies all clippy lints that are marked as MachineApplicable, i.e.,
safe to apply without changing code semantics
lutter added 27 commits January 12, 2026 13:55
Note that that also means that we run 'cargo clippy' in CI because the CI
workflow runs 'just lint'
Actually a nice logic error
Note that that also means that we run 'cargo clippy' in CI because the CI
workflow runs 'just lint'
@lutter lutter merged commit 7b02b32 into master Jan 12, 2026
6 checks passed
@lutter lutter deleted the lutter/clippy branch January 12, 2026 22:29
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.

3 participants