Repository navigation
fix(lints): clear the seven clippy errors CI reports - #42
Merged
Merged
Conversation
PermutationResearch
changed the base branch from
slice-2/control-plane
to
fix/hearth-ci
November 30, 2026 23:25
PermutationResearch
force-pushed
the
fix/hearth-clippy
branch
2 times, most recently
from
November 30, 2026 23:56
83427d1 to
cebf27a
Compare
PermutationResearch
force-pushed
the
fix/hearth-clippy
branch
2 times, most recently
from
December 1, 2026 01:43
cebf27a to
01fdb7f
Compare
This was referenced Dec 1, 2026
`cargo clippy --workspace --all-targets -- -D warnings` failed before the test step ran, on code that predates the workflow. - chatgpt_plan_store.rs: import db::GenericClient, so the four advisory-lock `query_one` calls dispatch to the trait method that prepares once and keeps the statement. clippy.toml disallows tokio-postgres' inherent method. - threads/comparison.rs: fold the nested `if` into a let-chain. - chatgpt_plan.rs: move `mod tests` below the items it tests. - hearth-cli/tests/common/mod.rs: one `#![allow(dead_code)]` for fixtures the binaries share but do not all use, and drop the two now-duplicate outer allows. That is how hearth-control/tests/common already does it.
PermutationResearch
force-pushed
the
fix/hearth-ci
branch
from
December 1, 2026 04:47
2027c96 to
c29bc30
Compare
PermutationResearch
force-pushed
the
fix/hearth-clippy
branch
from
December 1, 2026 04:47
01fdb7f to
92344f2
Compare
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.
What
The workflow added in #40 turned red on
clippy, before the test step ever ran. These are pre-existing violations under the repository's ownclippy.tomlpolicy:chatgpt_plan_store.rs:76,206,275,500—tokio_postgres::Transaction::query_one(advisory locks)use crate::db::GenericClient, so the calls dispatch to the trait method that prepares once and keeps the statementthreads/comparison.rs:371— collapsibleifchatgpt_plan.rs:17— items after a test modulemod testsmoved belowPlans/impl Planshearth-cli/tests/common/mod.rs:65,135,157— dead code in a shared fixture module#![allow(dead_code)]for the module, and the two now-duplicate outer#[allow(dead_code)]onmod common;removed (that is howhearth-control/tests/commonalready does it)No behaviour change: the advisory locks are the same statements, the comparison branch has the same control flow and the same early return, and only module/test ordering moved.
Verification
cargo fmt --all --check— clean.cargo clippy -p hearth-control -p hearth-cli --all-targets -- -D warnings— exit 0, no errors (local toolchain 1.99; CI runs 1.100, so CI is the deciding check).pre-commitvia.git/hooks) passed on the staged files, rustfmt included.CI on this PR should now reach
cargo test --workspace, which has never run on this repository. Any failure there is new information, not a regression from this diff.