Skip to content

Conversation

@posborne
Copy link
Collaborator

@posborne posborne commented Nov 4, 2025

Working on another change I wanted to run clippy but there were a bunch of existing warnings as it has not historically been enabled in CI for sightglass; add it to CI and fix the issues that it warned about.

I made the fixes as minimal as possible, with most being done by the tool itself. Likewise for the CI changes; there's definitely other stuff that could be updated (and likely may be in future changes). For now, just trying to get things clippy-clean.

@posborne
Copy link
Collaborator Author

posborne commented Nov 5, 2025

Failures appear to be from other CI bitrot unrelated to these changes; I'll separate off another PR to hopefully get baseline CI to pass and then this can be revisited on top of that.

@posborne posborne mentioned this pull request Nov 5, 2025
Note: clippy checks will fail at this commit. Fixes follow in subsequent commits.
- Fix redundant imports and unused lifetimes
- Update method calls to use modern patterns (is_none_or, as_deref)
- Add missing Default implementations for new() functions
- Fix needless borrows and improve type conversions
- Use write_all instead of write for complete writes
- Simplify conditional patterns using if let
- A mixed bag of other small changes, mostly auto-fixed
  by cargo fix.
@posborne
Copy link
Collaborator Author

Rebased; r? @fitzgen -- adding clippy isn't essential, but I have a train of a few other changes and wanted to get that code lint-free and it seemed valuable to just enforce that for the tree. Updates across the tree are mostly mechanical lint fixes.

@fitzgen fitzgen merged commit c35548e into bytecodealliance:main Nov 19, 2025
17 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.

2 participants