chore(clippy): resolve warnings to enable -D warnings gate - #166
Conversation
- Add `unexpected_cfgs` lint config to allow `cfg(frb_expand)` set by flutter_rust_bridge macros during codegen, preventing `cargo clippy -- -D warnings` from failing. - Remove redundant `.into()` conversion in create_order error path. - Fix doc comment formatting for ResetGuard (add missing blank line). - Replace format! with direct to_string() for static string in _run_order_subscription. - Mark process_order_event as #[allow(dead_code)] since
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughThis PR adds a Cargo lints configuration to whitelist the ChangesLint Configuration and orders.rs Cleanups
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
Prerequisite for #151 (CI with
cargo clippy -- -D warnings).Cleans up the 6 clippy warnings currently on
mainso the lint can become a required CI check without the first run rebounding.cfg(frb_expand)in[lints.rust](flutter_rust_bridge macro cfg)anyhow::Errorconversion increate_orderResetGuardformat!with.to_string()process_order_eventwith#[allow(dead_code)]No behavior change — all fixes are semantic no-ops.
Verified:
cargo clippy -- -D warningsclean,cargo test82 passed / 0 failed.Summary by CodeRabbit
Bug Fixes
Chores