Skip to content

fix(napkin): Satisfy Rust 1.100 clippy so CI passes again - #44

Merged
gpu004 merged 2 commits into
mainfrom
fix/clippy-1-100
Nov 20, 2026
Merged

gpu004 merged 2 commits into
mainfrom
fix/clippy-1-100

Conversation

@gpu004

@gpu004 gpu004 commented Nov 20, 2026

Copy link
Copy Markdown
Owner

CI on main has been red since the weekly run on 2026-11-16. Rust 1.100's clippy added two pedantic lints that fire on existing code, so every open PR fails too. This fixes both:

  • map_unwrap_or in crates/napkin/src/table.rs: .map(..).unwrap_or_default() becomes .map_or_else(String::new, ..). Clippy's suggested map_or_default is still unstable on 1.100.
  • needless_nonzero_get in crates/napkin/src/main.rs: u32 / NonZeroU32 divides directly.

The two commits are cherry-picked unchanged from the enforce-rules-in-code branch, so that branch rebases cleanly once this lands.

Proof: uv run --only-dev --locked prek run --all-files passes on rustc 1.100.0 (fmt, clippy -D warnings, tests, arch lint, README and validation checks). Before this change, the same run fails in clippy at table.rs:572.

Created with Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

@gpu004
gpu004 merged commit 9f6a863 into main Nov 20, 2026
6 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.

1 participant