Repository navigation
Conversation
Beta clippy's unnecessary_box_pin lint rejects Box::pin for a future that is polled once and dropped in the same statement. pin! does the same job without the allocation; the test's assertions are unchanged.
|
No actionable comments were generated in the recent review. Summary by CodeRabbit
WalkthroughThe queue-full boundary test now uses ChangesReliability boundary test
Estimated code review effort: 1 (Trivial) | ~3 minutes Change: Other Suggested reviewers: Merge Risk:
|
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
betatoolchain job fails onmainand on every open PR: beta clippy'sunnecessary_box_pinlint flags one test incrates/cachekit/src/reliability.rsthat boxes a future it polls once and drops.This swaps that
Box::pin(..).as_mut()forstd::pin::pin!(..). Test-only, one line, no behaviour change. The otherBox::pinsites in the module stay: those futures are polled and then awaited, so they need the owned pin.Verified locally:
cargo clippy --all-targets --features "cachekitio,redis,encryption,l1,macros,memcached,file,tracing" -- -D warningsis clean on beta (1.101.0-beta.3) and stable,cargo fmt --all -- --checkpasses, and the fivelimitertests pass.Closes LAB-13773