Uh oh!
There was an error while loading. Please reload this page.
chore(fmt): restore rustfmt on aisix-etcd loader test (post-#362) - #366
Conversation
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Free Run ID: 📒 Files selected for processing (1)
Note 🎁 Summarized by CodeRabbit FreeYour organization has reached its limit of developer seats under the Pro Plan. For new users, CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please add seats to your subscription by visiting https://app.coderabbit.ai/login.If you believe this is a mistake and have available seats, please assign one to the pull request author through the subscription management page using the link above. Comment |
There was a problem hiding this comment.
Pull request overview
Restores rustfmt-compliant formatting in the aisix-etcd loader unit tests to stop cargo fmt --check from failing CI after PR #362 introduced a multi-line vec! initializer that rustfmt collapses.
Changes:
- Reformat
provider_key_happy_path_acceptstest to matchrustfmtoutput (no behavioral changes).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
PR #362 added
fn provider_key_happy_path_accepts()with a multi-linevec!initializer that rustfmt collapses to a single line. main has been failinglint (fmt + clippy)on every PR since #362 merged (e.g. ai-gateway#360's run shows the diff atcrates/aisix-etcd/src/loader.rs:445).This is a pure 1-line fmt restore — no logic change.
Verification
cargo fmt --all -- --checkclean locally on this branch (matches the CI command in.github/workflows/ci.yml).rust-toolchain.toml), rustfmt 1.8.0-stable.Why a separate PR
Surfaced while debugging CI on ai-gateway#360 (the AISIX-Cloud#410 fix). Keeping this isolated from #360 per surgical-changes discipline — #360 doesn't touch loader.rs.