Skip to content

chore: fix new clippy warnings (derive default)#18

Open
tomerqodo wants to merge 3 commits intocursor_combined_20260121_qodo_grep_cursor_copilot_1_base_chore_fix_new_clippy_warnings_derive_default_pr150from
cursor_combined_20260121_qodo_grep_cursor_copilot_1_head_chore_fix_new_clippy_warnings_derive_default_pr150
Open

chore: fix new clippy warnings (derive default)#18
tomerqodo wants to merge 3 commits intocursor_combined_20260121_qodo_grep_cursor_copilot_1_base_chore_fix_new_clippy_warnings_derive_default_pr150from
cursor_combined_20260121_qodo_grep_cursor_copilot_1_head_chore_fix_new_clippy_warnings_derive_default_pr150

Conversation

@tomerqodo
Copy link
Copy Markdown

@tomerqodo tomerqodo commented Jan 21, 2026

Benchmark PR from qodo-benchmark#150


Note

Streamlines defaults and minor ergonomics:

  • Derives Default and marks default variants (#[default]) across multiple enums (e.g., WindowsUpdateInstallMode, DeviceEventFilter, BundleTarget, NsisCompression, NSISInstallerMode, PatternKind, TitleBarStyle, IsolationSide, MouseButtonState, MouseButton) and removes manual impl Default blocks
  • Consolidates platform-specific error messages for Error::MissingBundleTypeVar via #[cfg_attr] in crates/tauri-bundler/src/error.rs
  • Tray updates: adds TrayIconEvent::new_click helper; derives defaults for tray mouse types and updates From<tray_icon::MouseButtonState>/MouseButton conversions
  • No API surface changes beyond new Default impls and the new tray constructor

Written by Cursor Bugbot for commit 74afca3. Configure here.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

tray_icon::MouseButtonState::Up => MouseButtonState::Up,
tray_icon::MouseButtonState::Down => MouseButtonState::Down,
tray_icon::MouseButtonState::Up => MouseButtonState::Down,
tray_icon::MouseButtonState::Down => MouseButtonState::Up,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MouseButtonState conversion swaps Up and Down values

High Severity

The From<tray_icon::MouseButtonState> implementation incorrectly maps Up to Down and Down to Up. This causes all tray icon mouse button state events to report the inverse of what actually occurred—a button press will be reported as released and vice versa.

Fix in Cursor Fix in Web

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