Repository navigation
fix(napkin): Satisfy Rust 1.100 clippy so CI passes again - #44
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
CI on
mainhas 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_orincrates/napkin/src/table.rs:.map(..).unwrap_or_default()becomes.map_or_else(String::new, ..). Clippy's suggestedmap_or_defaultis still unstable on 1.100.needless_nonzero_getincrates/napkin/src/main.rs:u32 / NonZeroU32divides directly.The two commits are cherry-picked unchanged from the
enforce-rules-in-codebranch, so that branch rebases cleanly once this lands.Proof:
uv run --only-dev --locked prek run --all-filespasses 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 attable.rs:572.Created with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code