Skip to content

fix(lint): satisfy clippy 1.99 assert_is_empty and sync Cargo.lock to 0.3.6 - #121

Merged
ryanleecode merged 1 commit into
masterfrom
fix/clippy-1.99-assert-is-empty
Oct 1, 2026
Merged

ryanleecode merged 1 commit into
masterfrom
fix/clippy-1.99-assert-is-empty

Conversation

@systemfsoftware-maker

@systemfsoftware-maker systemfsoftware-maker commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

CI on master has failed since #119 merged, and so did the v0.3.6 Release run, both at the clippy step. This PR makes clippy pass again, so the stalled 0.3.6 publish can resume.

Why master broke after a green PR

rust-toolchain.toml follows stable, and the workspace denies all of clippy::all. Rust 1.99.0 shipped on 2026-09-28 with a new lint, clippy::assert_is_empty, that rejects assert!(x.is_empty()). The runner image picked up the new toolchain between the two runs:

Run rustc Clippy
#119 PR CI, 09-30 1.98.1 pass
master after merge, 10-01 1.99.0 10 assert_is_empty errors

None of the flagged lines were changed in #119. They were already on master and only started failing under the new lint.

Changes

Release

There's no changeset on purpose. plan-release.ts only chooses publish for the untagged 0.3.6 while no intents are pending, so merging this resumes the v0.3.6 publish that failed.

Verification

The one-shot gate (cargo fmt --check, cargo clippy --all-targets -- -D warnings, cargo test --all-targets) passes on both rustc 1.99.0 and the dev shell's 1.98.1, with 128 tests passing on each. Mutation testing wasn't run because src/classify.rs is unchanged.

Not addressed here: the toolchain still follows stable, so the next stable release can add lints and break CI the same way.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

… 0.3.6

rust-toolchain.toml tracks stable and the workspace denies clippy::all.
Rust 1.99.0 (2026-09-28) added clippy::assert_is_empty, which rejects
assert!(x.is_empty()); master CI and the v0.3.6 release run picked it up
and failed at the clippy step. All ten sites now use assert_eq! against
an explicitly typed empty Vec, so a failure prints the unexpected items.

The version-packages commit (#120) bumped the crate to 0.3.6 without
recording it in Cargo.lock; cargo rewrites the entry on any build.

No changeset: the release planner resumes the untagged 0.3.6 publish
only while no intents are pending.
@ryanleecode
ryanleecode merged commit d123fb1 into master Oct 1, 2026
13 checks passed
@ryanleecode
ryanleecode deleted the fix/clippy-1.99-assert-is-empty branch October 1, 2026 19:21
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