Repository navigation
Conversation
Beta clippy's unnecessary_box_pin rejects Box::pin on a future that is polled once and dropped in the same statement. pin! does the same job without the allocation.
|
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 55 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 |
The
betaCI job fails onmainand on every open PR: beta clippy's newunnecessary_box_pinlint rejects one line in thereliabilitytest module, which heap-pins a future only to poll it once and drop it in the same statement.This change swaps that
Box::pin(...).as_mut()forpin!(...). It touches test code only: no runtime, manifest or lockfile change. The other threeBox::pincalls in the module stay, because those futures are awaited or dropped later and the lint accepts them.Checks run locally, with the CI feature set (
cachekitio,redis,encryption,l1,macros,memcached,file,tracing):cargo fmt --checkcargo clippy --all-targets -- -D warningson beta (1.101.0-beta.3), stable and 1.91: clean on all three; beta failed with the one error before the change.cargo test: all suites pass, includinglimiter_sheds_queue_full_at_nonzero_boundary.Closes LAB-13771