fix(evm): use sort_by_key to satisfy clippy unnecessary_sort_by lint#100
fix(evm): use sort_by_key to satisfy clippy unnecessary_sort_by lint#100
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 sorting logic in a Curie fork test was refactored from using Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 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 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 |
Summary
clippy::unnecessary_sort_bylint incrates/evm/src/block/curie.rs:129sort_by(|(a, _), (b, _)| a.cmp(b))→sort_by_key(|(a, _)| *a)Background
CI upgraded to Rust 1.95.0 which introduced the
unnecessary_sort_bylint as a warning. Local dev still on 1.92.0 so this wasn't caught before merging. Blocking dependabot PR #99.Summary by CodeRabbit