fix(ci): cargo fmt + allow clippy too_many_arguments on trades routes#93
fix(ci): cargo fmt + allow clippy too_many_arguments on trades routes#93
Conversation
Two pre-existing main issues blocking CI: 1. `cargo fmt --check` fails on `src/routes/orders/get_by_owner.rs` and `get_by_token.rs` — long single-line `super::quote_result_to_io_ratio` calls were merged un-formatted. 2. `clippy::too_many_arguments` fires on `get_trades_by_address` (8/7) and `get_taker_trades` (9/7). These are Rocket route handlers; their arity is dictated by the `&State<…>` they need to read, not arbitrary. The clippy lint hasn't surfaced on main because fmt fails first and CI exits; once fmt passes the clippy errors will appear. Allowing the lint locally on the two handlers, with a comment explaining why, is the least-invasive fix.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThree Rust source files undergo code reformatting and linting adjustments: multi-line restructuring of Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
How to use the Graphite Merge QueueAdd the label add-to-gt-merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |

Motivation
Main is red and has been for the last several runs. Two latent issues:
This PR unblocks the whole stack — it sits at the bottom so #78 (and any other in-flight branches) inherit a green base instead of having to carry the bandage themselves.
Solution
No behaviour change.
Checks
By submitting this for review, I'm confirming I've done the following:
Summary by CodeRabbit