Skip to content

fix: clippy needless_bool under Rust 1.100 - #9

Merged
ahze merged 1 commit into
mainfrom
fix/clippy-needless-bool
Nov 13, 2026
Merged

ahze merged 1 commit into
mainfrom
fix/clippy-needless-bool

Conversation

@ahze

@ahze ahze commented Nov 13, 2026

Copy link
Copy Markdown
Member

Rust 1.100's clippy flags an if that returns a bool literal followed
by the other literal. Two sites: the DHCP lease cache's is_empty and the
nftables rule comparison. Return the condition directly; the cache one
asks the map so it no longer goes through len.

No behavior change. Found by CI the day 1.100 became stable.

Rust 1.100's clippy flags an `if` that returns a bool literal followed
by the other literal. Two sites: the DHCP lease cache's is_empty and the
nftables rule comparison. Return the condition directly; the cache one
asks the map so it no longer goes through len.

No behavior change. Found by CI the day 1.100 became stable.

Signed-off-by: Michael Johnson <buhnux@gmail.com>
@ahze
ahze merged commit d5ecaf0 into main Nov 13, 2026
3 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