Repository navigation
Conversation
|
@andreaTP can you please push a commit to retrigger CI? Seems like ready to merge. |
clippy::needless_bool flags the `if <cond> { return false; } true` tail
of native_context in any build with experimental_execution_plan but
without failpoints. CI's --all-features clippy enables failpoints and
never sees it.
Return the negated condition directly. No behavior change.
ddd2db7 to
11d1913
Compare
|
@chaliy done, thank you! |
Review summaryVerdict: Looks good — clean lint-only refactor, no behavior change. No findings, no review submitted.
Context read beyond the diff: Not reviewed: Nothing in scope — the diff is fully visible ( |
What changed
native_contextininterpreter/script_plan.rsnow returns the negated condition directly instead ofif <cond> { return false; } true. No behavior change.Why
clippy::needless_boolfails with-D warningsfor any build that enablesexperimental_execution_planwithoutfailpoints. CI'scargo clippy --all-targets --all-featuresenablesfailpoints, which hides the lint, so CI stays green. Found while linting awasm32-wasip1build with--no-default-features --features git,jq,python,typescript,tzdata,experimental_jq,experimental_execution_plan; it reproduces on the host too.Before / After
cargo clippy -p bashkit --features experimental_execution_plan -- -D warningsBefore:
After: passes clean.
Also passing:
cargo clippy --all-targets --all-features -- -D warnings,cargo clippy -p bashkit --no-default-features --lib --tests -- -D warnings,cargo fmt --all --check, andcargo test -p bashkit --features experimental_execution_plan --lib(3213 passed).Risk
Checklist
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.