Skip to content

Fix clippy pedantic issues and activate it on CI by default#91

Open
brainstorm wants to merge 12 commits intomainfrom
fix_clippy_pedantic
Open

Fix clippy pedantic issues and activate it on CI by default#91
brainstorm wants to merge 12 commits intomainfrom
fix_clippy_pedantic

Conversation

@brainstorm
Copy link
Copy Markdown
Owner

@brainstorm brainstorm commented Apr 2, 2026

  • Prepares for Documentation #30 since it adds a bunch of function/member doc headers with return types, panics and proper rustdoc formatting.
  • Uses Box::pin to avoid the large_futures clippy lint... if we don't do that, heap blows up by ~20KB, which is unacceptable in our target(s). Happy to hear alternative solutions since I don't like to use alloc:: functionality if it's not needed :-/
  • Reduces connection_loop function body to 100 lines or less (another clippy pedantic lint) by extracting its handlers. This approach also gets closer to Traits refactor #85 where I had to do the similar extraction/simplification.
  • Unsure about the removal of async in some functions, overall and definitely needs on-hardware testing.

brainstorm and others added 7 commits April 1, 2026 23:34
cargo clippy --features esp32c6 -- -W clippy::mem_forget_instead_of_drop -W clippy::holding_lock -W clippy::large_futures -W clippy::pedantic
cargo clippy --features esp32c6 -- -W clippy::mem_forget -W clippy::await_holding_lock -W clippy::large_futures -W clippy::pedantic

Notice mem_forget and await_holding_lock, according to the currently
available lints at the time of writing this: https://rust-lang.github.io/rust-clippy/master/index.html
…tps://github.com/j178/prek on our dev machines after this PR is merged, otherwise they'll be a fair bit of CI breakage and potential DX frustration
…ines (according to clippy lints)... still needs a final pass of review
@brainstorm brainstorm removed the request for review from mmalenic April 4, 2026 17:49
@brainstorm brainstorm requested review from jubeormk1 and mmalenic April 4, 2026 18:22
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