Skip to content

chore: fix clippy warnings surfaced by Rust 1.95#83

Open
youichi-uda wants to merge 1 commit intodatafusion-contrib:mainfrom
youichi-uda:chore/clippy-rust-1.95-lints
Open

chore: fix clippy warnings surfaced by Rust 1.95#83
youichi-uda wants to merge 1 commit intodatafusion-contrib:mainfrom
youichi-uda:chore/clippy-rust-1.95-lints

Conversation

@youichi-uda
Copy link
Copy Markdown

Summary

Rust 1.95 / clippy 1.95 promoted two lints to warnings that now break CI on any PR because the workflow runs clippy with -D warnings:

  • clippy::useless_conversion in src/row_index.rs:283 — drop a redundant .into_iter() inside a zip() argument (IntoIterator is already accepted).
  • clippy::explicit_counter_loop in src/encoding/integer/rle_v2/delta.rs:254 and :283 — rewrite two manual counter loops in the test module with .enumerate().

No behaviour change. main is currently green only because the last push predates the Rust 1.95 release; any new PR (e.g. #82) now fails all three Clippy jobs on these pre-existing lines.

Test plan

  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo clippy --workspace --all-targets --no-default-features -- -D warnings

All three pass locally on Rust 1.95.0.

Rust 1.95 / clippy 1.95 promoted two lints to warnings which now
fail CI under `-D warnings`:

- `clippy::useless_conversion` in `src/row_index.rs`: drop the
  redundant `.into_iter()` in a `zip()` argument.
- `clippy::explicit_counter_loop` in
  `src/encoding/integer/rle_v2/delta.rs`: rewrite two manual
  counter loops in the test module with `.enumerate()`.

No behaviour change; CI on `main` is currently green because the
last push predates the Rust 1.95 release, but any new PR hits
these warnings.
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