Skip to content

fix(dg): box the repo command's future so clippy passes on macOS arm64 - #425

Merged
PastaPastaPasta merged 1 commit into
masterfrom
fix/dg-repo-run-large-future
Oct 7, 2026
Merged

PastaPastaPasta merged 1 commit into
masterfrom
fix/dg-repo-run-large-future

Conversation

@PastaPastaPasta

@PastaPastaPasta PastaPastaPasta commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

On macOS arm64 with the pinned 1.98.0 toolchain, cargo clippy -p dg --all-targets -- -D warnings fails on master. The cause is clippy::large_futures at crates/dg/src/main.rs: repo::run(ctx, cmd).await is 16,400 bytes, against a limit of 16,384. On Linux x86_64 the future is just under the limit, so CI passes, but anyone running clippy on a Mac sees master fail.

The fix boxes that future the same way the pr command next to it already is, and the way f881357 did for push_refs.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • No user-facing changes
    • The Repo command’s behavior and arguments remain unchanged.

On macOS arm64 with the pinned 1.98.0 toolchain, `repo::run`'s future is 16,400 bytes,
16 over the clippy::large_futures limit, so `cargo clippy -D warnings` fails on master
there. Linux x86_64 is just under the limit, so CI passes. Box it the way the pr command
already is.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@coderabbitai

coderabbitai Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ec81b063-0c4e-4f97-8222-314c3351039e
📥 Commits

Reviewing files that changed from the base of the PR and between b363762 and 0e6fec6.

📒 Files selected for processing (1)
  • crates/dg/src/main.rs

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The Repo command now pins the repo::run future with Box::pin before awaiting it. The command arguments and handler remain unchanged.

Changes

Repo command

Layer / File(s) Summary
Pin the Repo future
crates/dg/src/main.rs
Command::Repo awaits Box::pin(repo::run(ctx, cmd)) instead of awaiting the future directly.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~2 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 0e6fe

The Repo command’s future is boxed before awaiting, with no behavior change identified. No actionable merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the change: boxing the repo command's future to address a macOS arm64 Clippy failure.
Description check ✅ Passed The description explains the problem and the fix. It does not include the template's “How it was tested” section or report test results, but the main change and its purpose are clear.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 1 files.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@PastaPastaPasta
PastaPastaPasta merged commit 04dc153 into master Oct 7, 2026
20 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