Skip to content

Fix clippy assert_is_empty failures on Rust 1.99 - #7

Merged
imattau merged 1 commit into
mainfrom
claude/funny-wozniak-zvkl9o
Nov 9, 2026
Merged

imattau merged 1 commit into
mainfrom
claude/funny-wozniak-zvkl9o

Conversation

@imattau

@imattau imattau commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Stable Rust 1.99 added clippy's assert_is_empty lint, which broke the Checks workflow's lint step on main.
  • Test assertions of the form assert!(x.is_empty()) become assert_eq!(x.len(), 0) (and assert_ne! for the negated form), so failures still show the value. Tests only; no behaviour change.

Testing

On Rust 1.99.1 locally: scripts/check-spec.sh, cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings and cargo test --workspace (474 passed, 0 failed).


Generated by Claude Code

Newer stable clippy flags assert!(x.is_empty()) in tests. Use assert_eq!/assert_ne!
so failures show the value, which restores the Checks workflow.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RjtG21XFk7KzzvtNSYt1vf
@imattau
imattau merged commit 297f92b into main Nov 9, 2026
2 checks passed
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