fix(clippy): use sort_by_key with Reverse for descending sort - #7
Conversation
Caught by Rust 1.95.0's unnecessary_sort_by lint. Same pattern as gitkb/meta_cli#23 — `sort_by(|a, b| b.cmp(&a))` is equivalent to `sort_by_key(|x| std::cmp::Reverse(x))`. DateTime<Utc> is Copy, so no allocation/clone concerns. Unblocks gitkb/meta#78.
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 1 minutes and 44 seconds. ⌛ 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: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Caught by Rust 1.95.0's
unnecessary_sort_bylint. Same pattern as gitkb/meta_cli#23 —sort_by(|a, b| b.cmp(&a))is equivalent tosort_by_key(|x| std::cmp::Reverse(x)).DateTime<Utc>isCopy, so no allocation/clone concerns. Unblocks gitkb/meta#78.