Repository navigation
fix(eql-mapper): satisfy clippy lints added in Rust 1.100.0 - #515
Merged
Merged
Conversation
The Lint (Rust stable) job installs the latest stable toolchain, which moved to Rust 1.100.0. Its clippy rejects two patterns in eql-mapper, so the job now fails on main and on every pull request. - duplicated_attributes: the UnmappableEncryptedColumn error message passed `table` twice as a positional format argument. The message now names the variant's fields inline, which thiserror supports, so each field appears once. The rendered message is unchanged. - needless_bool: FailOnPlaceholderChange::would_edit returned `true` from an `if` and then `false`. It now returns the condition directly. Neither change alters behaviour.
tobyhede
marked this pull request as ready for review
November 22, 2026 23:45
cipherstash-agent
left a comment
There was a problem hiding this comment.
Review attestation
Reviewed 450d65b · posted from Claude Code (scheduled routine) · claude-opus-5-5 · effort medium
Sources: code-review · claude-opus-5-5; mattpocock-skills:code-review (standards + spec agents) · claude-opus-5-5; review-cross-check · claude-opus-5-5
Skills: code-review, rust-security, mattpocock-skills:code-review, review-cross-check, review-post
No findings.
Generated by Claude Code
CDThomas
approved these changes
Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
Lint (Rust stable)CI job installs the latest stable Rust, which is now 1.100.0.Its clippy rejects two patterns in
eql-mapper, the crate that type-checks SQL statements for Proxy, so Lint fails onmainand on every open pull request.This change rewrites both spots the way clippy suggests, with no change in behaviour.
Changes
packages/eql-mapper/src/inference/type_error.rs: theUnmappableEncryptedColumnerror message passedtabletwice as a positional format argument, which tripsclippy::duplicated_attributes. The message now names the fields inline ({table},{column},{column_type}), whichthiserrorsupports. The rendered text is unchanged.packages/eql-mapper/src/transformation_rules/fail_on_placeholder_change.rs:would_editreturnedtruefrom anifand thenfalse, which tripsclippy::needless_bool. It now returns the condition directly.Verification
cargo clippy --locked --all --no-deps --all-targets --all-features -- -D warnings: passed for the whole workspace, so no further 1.100.0 lints were hidden behind these two.cargo fmt --all -- --checkwith Rust 1.100.0: passed.cargo test -p eql-mapperwith the pinned toolchain (1.99.0): 225 passed, 0 failed, 7 ignored.Related
Unblocks the
Lint (Rust stable)check on #512, which fails only because of these two lints.Review notes
rust-toolchain.tomlstill pins 1.99.0 for local builds. CI's Lint job uses latest stable, so the two can drift again when the next stable release adds lints. Pinning the Lint job, or bumping the pinned toolchain, is a separate decision.Acknowledgment
By submitting this pull request, I confirm that CipherStash can use, modify, copy, and redistribute this contribution, under the terms of CipherStash's choice.