Repository navigation
Conversation
Beta clippy's unnecessary_box_pin lint flags Box::pin on a future that is polled once and dropped in the same statement. std::pin::pin! does the same job without the allocation, and keeps the beta job green under -D warnings.
|
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 54 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:
|
|
Duplicate of #240, which carries the same one-line change and was opened first. Closing this one. |
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 on every pull request: beta clippy'sunnecessary_box_pinlint fires once, on a test incrates/cachekit/src/reliability.rsthat boxes a future it polls once and then drops.std::pin::pin!pins that future on the stack instead. The test asserts the same thing as before; only the allocation goes.Test-only, one line. No library code, manifest or lockfile change.
Verified locally with
cargo clippy --all-targets --features "cachekitio,redis,encryption,l1,macros,memcached,file,tracing" -- -D warningson beta, stable and 1.91, pluscargo fmt --checkand thereliabilityunit tests.