style: clean clippy lints in did-stellar-registry#64
Conversation
Plan expiredYour subscription has expired. Please renew your subscription to continue using CI/CD integration and other features. |
|
Warning Review limit reached
More reviews will be available in 12 minutes and 51 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, 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 include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ 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 |
Summary
Clears the pre-existing clippy debt in
did-stellar-registryso the crate passesclippy -D warnings. No behavior change — purely lint fixes (mostly applied viacargo clippy --fix).manual_range_contains: key-count bound check rewritten withRangeInclusive::contains.len_zero:len() == 0→is_empty()in service validation.bool_assert_comparison:assert_eq!(x, true/false)→assert!(x)/assert!(!x)in tests.manual_str_repeat/manual_repeat_n: long-string test builders →str::repeat.needless_borrow: dropped a redundant&.duplicated_attributes: removed the redundant inner#]-gated inlib.rs).