Apply automatic clippy fixes in codegen#5425
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughThis PR applies broad code-quality cleanup across ChangesCodegen cleanup and idiomatic Rust refactors
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
clippy --fix dropped the `BufferViewRep` re-export from native_value/mod.rs because its only remaining user is the `verify` test module (non-test code reaches the type via super::buffer directly). Restore it gated behind #[cfg(test)] so the test build resolves `crate::native_value::BufferViewRep` without reintroducing an unused-import warning in release builds. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Summary
cargo clippy --fixsuggestions across the codegen crates.perry-codegen,perry-codegen-arkts,perry-codegen-js, andperry-codegen-wasmwithout changing generated-code intent.Validation
cargo fmt --all -- --checkcargo clippy -p perry-codegen -p perry-codegen-arkts -p perry-codegen-js -p perry-codegen-wasm -- -A clippy::not_unsafe_ptr_arg_derefcargo clippy --fix --lib -p perry-codegen --allow-dirty --allow-staged -- -A clippy::not_unsafe_ptr_arg_dereffor one remaining automatic suggestion, thencargo fmt --all -- --checkRemaining clippy output is pre-existing warning debt not covered by automatic fixes in this branch.
Summary by CodeRabbit