Skip to content

fix: replace bool comparison with negation to satisfy clippy#941

Open
drzow wants to merge 1 commit intoRightNow-AI:mainfrom
drzow:fix/clippy-bool-comparison
Open

fix: replace bool comparison with negation to satisfy clippy#941
drzow wants to merge 1 commit intoRightNow-AI:mainfrom
drzow:fix/clippy-bool-comparison

Conversation

@drzow
Copy link
Copy Markdown

@drzow drzow commented Mar 31, 2026

assert!(expr == false) triggers clippy::bool_comparison; use assert!(!expr) instead.

Summary

Fixes #939

Changes

Changed == false to !

Testing

Security

  • No new unsafe code
  • No secrets or API keys in diff
  • User input validated at boundaries

`assert!(expr == false)` triggers `clippy::bool_comparison`; use `assert!(!expr)` instead.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

Lint (clippy) error on crates/openfang-runtime/src/web_fetch.rs:517

1 participant