Skip to content

chore: conditionally import AtomicU64 only on non-macOS#63

Merged
VariableThe merged 1 commit into
mainfrom
fix/cleanup-window-state-slop
Jun 25, 2026
Merged

chore: conditionally import AtomicU64 only on non-macOS#63
VariableThe merged 1 commit into
mainfrom
fix/cleanup-window-state-slop

Conversation

@VariableThe

Copy link
Copy Markdown
Owner

Summary

  • Fixes the lone non-objc Rust warning: unused import: AtomicU64
  • AtomicU64 is only used in #[cfg(not(target_os = macos))] blocks for the
    Windows/Linux focus-loss debounce mechanism. On macOS it was imported
    unconditionally, producing a warning.
  • Moved the import behind #[cfg(not(target_os = macos))].

Reduces cargo check warnings from 12 to 11 (remaining 11 are all pre-existing
objc macro warnings in macos.rs).

AtomicU64 is only used in #[cfg(not(target_os = macos))] blocks
(focus-loss debounce for Windows/Linux). On macOS it generates an
unused import warning. Moved the import behind the same cfg guard.
@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@VariableThe, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 28 minutes and 55 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 10011948-c269-4321-b53b-3c5ca9f27afb

📥 Commits

Reviewing files that changed from the base of the PR and between 7a974c7 and 01448d3.

📒 Files selected for processing (1)
  • src-tauri/src/lib.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/cleanup-window-state-slop

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@VariableThe VariableThe merged commit 6683b5c into main Jun 25, 2026
4 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