Skip to content

fix(ci): satisfy Rust 1.99 clippy lints - #347

Merged
StefanSteiner merged 1 commit into
tableau:mainfrom
StefanSteiner:fix/clippy-must-use-candidate
Oct 5, 2026
Merged

StefanSteiner merged 1 commit into
tableau:mainfrom
StefanSteiner:fix/clippy-must-use-candidate

Conversation

@StefanSteiner

Copy link
Copy Markdown
Contributor

Summary

CI runs the moving stable toolchain. Rust 1.99.0 (2026-09-28) added/tightened clippy lints, so the clippy job fails under -D warnings on every PR (first seen on #346, unrelated to it).

  • clippy::must_use_candidate: add #[must_use] to six accessors in hyperdb-api (Inserter::table_definition, names.rs name/schema/table, grpc_connection.rs config x2).
  • clippy::assert_is_empty: replace assert!(x.is_empty()) / assert!(!x.is_empty()) in tests with assert_eq!/assert_ne! (clippy's own suggestions, plus len() forms where the element type is ambiguous).
  • Remove five #[expect(clippy::float_cmp)] in hyperdb-api-core tests that 1.99 no longer triggers (unfulfilled expectations are errors).

No behaviour change; test/lint code and attributes only.

Test plan

  • cargo +1.99.0 clippy --workspace --all-targets --all-features -- -D warnings — clean (exit 0)
  • cargo +1.99.0 fmt --all
  • CI clippy (ubuntu, windows) and test green

Note: on 1.98 the new #[must_use] attributes trip double_must_use (those return types are already #[must_use]); CI is on 1.99 so this is only visible on older local toolchains.

CI tracks the moving stable toolchain, and 1.99 added/tightened lints that
fail the -D warnings clippy gate:
- must_use_candidate on six accessor methods in hyperdb-api
- assert_is_empty on assert!(x.is_empty()) in tests (use assert_eq!/assert_ne!)
- unfulfilled #[expect(clippy::float_cmp)] in hyperdb-api-core tests, which
  1.99 no longer triggers

No behaviour change.
@StefanSteiner
StefanSteiner merged commit 599fffa into tableau:main Oct 5, 2026
19 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