Skip to content

fix(clippy): resolve new lints from Rust 1.99 - #130

Merged
JanZachmann merged 1 commit into
omnect:mainfrom
JanZachmann:fix/clippy-rust-1.99
Oct 6, 2026
Merged

JanZachmann merged 1 commit into
omnect:mainfrom
JanZachmann:fix/clippy-rust-1.99

Conversation

@JanZachmann

Copy link
Copy Markdown
Contributor

Summary

  • manual_is_variant_and: use Result::is_ok_and in reconnection.rs.
  • unused_async_trait_impl: allow it next to the existing unused_async allows in api.rs and the mock create_module_certificate. Actix handlers and the mock function must stay async.
  • assert_is_empty: use assert_eq! / assert_ne! in three tests.

Reason

CI runs clippy with the current stable toolchain (Rust 1.99), which adds these lints. With -D warnings they fail the QA build on main.

The new lint name is unknown to older clippy versions, so clippy before 1.99 reports unknown lint: clippy::unused_async_trait_impl. Update the local toolchain with rustup update stable.

- manual_is_variant_and: use Result::is_ok_and.
- unused_async_trait_impl: allow it where unused_async is already
  allowed, because actix handlers and the mock certificate function
  must stay async.
- assert_is_empty: use assert_eq!/assert_ne! in tests.

Signed-off-by: Jan Zachmann <50990105+JanZachmann@users.noreply.github.com>
@JanZachmann
JanZachmann merged commit 363d8ed into omnect:main Oct 6, 2026
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.

1 participant