Repository navigation
Conversation
Beta clippy's unnecessary_box_pin rejects Box::pin for a future that is polled once and dropped in the same statement. pin! does the same job without the allocation, and keeps the beta lint job green.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 56 minutes. View limit details
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. |
Code Review Completed! 🔥The code review was successfully completed based on your current configurations. Kody Guide: Usage and ConfigurationInteracting with Kody
Providing Context (Files & MCPs)Add these hints in your PR description (or a comment) to unlock deeper checks:
Current Kody ConfigurationReview OptionsThe following review options are enabled or disabled:
|
Instruction counts: PASS122 of 122 cases measured. A case fails when its median is slower than the base by its floor or more (SLOWER). The floor is 0.5%, and such a case also fails when the head's runs spread by more than that (NOISIER), except 122 cases within noise
PR head |
What
One test in
reliability.rspinned a future withBox::pinonly to poll it once and drop it. Beta clippy (1.101) now rejects that underclippy::unnecessary_box_pin, so thebetajob fails on every branch, whatever the branch changes.This swaps it for
std::pin::pin!. Test-only, no behaviour change: the future is still polled exactly once and dropped at the end of the statement.Verified locally
cargo +beta clippy --all-targets --features "cachekitio,redis,encryption,l1,macros,memcached,file,tracing" -- -D warnings: 1 error before, clean aftercargo fmt --all -- --check: cleancargo testwith the same features on stable: all passDocs
No docs needed: test-only change, no public or documented surface.