Skip to content

fix: avoid collapsible_match clippy lint in native-check timer handler#3

Merged
EternityX merged 1 commit into
masterfrom
fix/detect-initial-state-at-startup
Jun 14, 2026
Merged

fix: avoid collapsible_match clippy lint in native-check timer handler#3
EternityX merged 1 commit into
masterfrom
fix/detect-initial-state-at-startup

Conversation

@EternityX

Copy link
Copy Markdown
Owner

clippy 1.96 flags the WM_TIMER arm body (a lone if) as collapsible into the match guard. Bind the check_native_toggle result first instead of taking clippy's suggestion to inline the call into the guard - that call mutates state and can write settings to disk, which must not live in a pattern guard.

clippy 1.96 flags the WM_TIMER arm body (a lone `if`) as collapsible into
the match guard. Bind the check_native_toggle result first instead of
taking clippy's suggestion to inline the call into the guard - that call
mutates state and can write settings to disk, which must not live in a
pattern guard.
@EternityX EternityX merged commit 19249e6 into master Jun 14, 2026
3 checks passed
@EternityX EternityX deleted the fix/detect-initial-state-at-startup branch June 14, 2026 13:23
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