Skip to content

Fix clippy bool_assert_comparison errors#108

Merged
aaronriekenberg merged 1 commit into
mainfrom
copilot/fix-clippy-errors
Jun 6, 2026
Merged

Fix clippy bool_assert_comparison errors#108
aaronriekenberg merged 1 commit into
mainfrom
copilot/fix-clippy-errors

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jun 6, 2026

Rust 1.96 + clippy::bool_assert_comparison (implied by -D warnings) rejects assert_eq! comparisons against literal bools.

Changes

  • src/parser/regex.rs / src/progress/style.rs: Replace all assert_eq!(expr, true/false) with assert!(expr) / assert!(!expr)
// Before
assert_eq!(regex_processor.regex_mode(), false);
assert_eq!(result.is_err(), false);
assert_eq!(result.enable_steady_tick, true);

// After
assert!(!regex_processor.regex_mode());
assert!(result.is_ok());
assert!(result.enable_steady_tick);

@aaronriekenberg aaronriekenberg merged commit 3a7b4f3 into main Jun 6, 2026
1 check passed
@aaronriekenberg aaronriekenberg deleted the copilot/fix-clippy-errors branch June 6, 2026 09:22
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