fix(platform-wallet): satisfy accessors clippy lints#3596
fix(platform-wallet): satisfy accessors clippy lints#3596thepastaclaw wants to merge 1 commit intodashpay:v3.1-devfrom
Conversation
|
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 (1)
📝 WalkthroughWalkthroughThe PR refactors three accessor functions in the wallet manager by simplifying how they compute or assign values. Changes replace a manual ChangesAccessor Function Simplifications
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
✅ Review complete (commit 982c6f7) |
thepastaclaw
left a comment
There was a problem hiding this comment.
Code Review
Behavior-preserving clippy cleanup in packages/rs-platform-wallet/src/manager/accessors.rs. Verified against source: try_queue_depth() returns Option<usize> so unwrap_or_default() yields 0 (matches the prior None => 0 arm); RegistrationIndex is a u32 alias so as u32 is redundant; replacing |info| addr_info_snapshot(info) with addr_info_snapshot is a pure refactor. No correctness, security, or architectural concerns.
Reviewed commit: 982c6f7
fix(platform-wallet): satisfy accessors clippy lints
Issue being fixed or feature implemented
Fixes
cargo clippy -p platform-wallet --all-targets -- -D warningsfailureson
v3.1-devcaused by newly-denied clippy lints inPlatformWalletManageraccessors.What was done?
Optionfallback with.unwrap_or_default().u32 -> u32cast from wallet identity row snapshots.How Has This Been Tested?
cargo fmt --allcargo clippy -p platform-wallet --all-targets -- -D warningsshipBreaking Changes
None.
Checklist
corresponding section if my code contains any
For repository code-owners and collaborators only
Summary by CodeRabbit