Repository navigation
refactor(loop): extract is_delivery_verified — fixes clippy 1.96 lint break - #470
Merged
Merged
Conversation
…able-boolean on 1.96 #465 nested a !delivery_state(...).is_some_and(...) inside the unvalidated_deliveries filter; clippy 1.96 (the local Homebrew toolchain) flags it as a simplifiable boolean, which broke 'make lint-rust' (exit 101) and thus the goal close-out verify gate. Extract the check into a named helper (is_delivery_verified) — same semantics, readable, both toolchains clean. Found because goal_95c5's close-out validator ('make lint-rust && make test') kept failing on this exact lint.
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.
#465 nested a
!delivery_state(...).is_some_and(...)inside theunvalidated_deliveriesfilter; clippy 1.96 (local Homebrew toolchain) flags it as a simplifiable boolean →make lint-rustexited 101, which in turn made goal_95c5's close-out verify gate fail. Extracted into a namedis_delivery_verifiedhelper: same semantics, both 1.96 and 1.97 clean.Also surfaced during the close-out audit: 8 of goal_95c5's validator receipts were backfilled after honestly re-running each
--verifycommand (all green); the 9th (make lint-rust && make test) passed only after this fix.