Skip to content

Conversation

@dvdhrm
Copy link
Member

@dvdhrm dvdhrm commented Jan 12, 2026

A collection of fixes reported by clippy, plus adjustments to the build system to finally get clippy working in our CI setup with dual builds.

Change the prefixes of the functions that encode and decode static
integers via the format type. Clippy otherwise warns about `to_*()` not
using `self` as by-value type. It also makes sense to avoid the known
`to_*()` prefix, even though it kinda fits.

Signed-off-by: David Rheinsberg <david@readahead.eu>
Clippy warns about usage of \0 if followed by 2 more digits. Given that
outside of obscue TTY ASCII mappings no-one ever uses octal escapes,
lets just silence the lint rather than significantly worsening
readability by using `\x00`.

Signed-off-by: David Rheinsberg <david@readahead.eu>
Silence the too-many-arguments lint on a code-generation helper. The
purpose here is to put all arguments into a single call, so this is
fine.

Signed-off-by: David Rheinsberg <david@readahead.eu>
Fix the format of the safety comment to use a proper header.

Signed-off-by: David Rheinsberg <david@readahead.eu>
Apply a selection of clippy lints, and silence other lints that we do
not want to apply.

Signed-off-by: David Rheinsberg <david@readahead.eu>
Rather than copying lints in each package, provide them via Cargo.toml.
This requires extending `cargo-query` to parse lints. While at it,
replace the shell script with a proper python script.

Signed-off-by: David Rheinsberg <david@readahead.eu>
Rather than just running rustc lints, run clippy in CI.

Signed-off-by: David Rheinsberg <david@readahead.eu>
@dvdhrm dvdhrm merged commit e9aa545 into bus1:main Jan 12, 2026
10 checks 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.

1 participant