Review Rust code by running cargo test, cargo clippy, and cargo doc to ensure safety, correctness, and documentation quality.
Review Rust code by verifying ownership safety, running cargo test and cargo clippy, and checking documentation examples with cargo doc. Execute the following commands to automate the review process:
cargo test
cargo clippy --all-targets
cargo doc --no-deps
Ensure all tests pass, clippy reports no warnings, and documentation builds without errors before merging.
Reviewing Rust code means checking that memory is managed safely, tests pass, and documentation is clear. Think of it like inspecting a car before a road trip: you check the engine (tests), the safety features (clippy), and the manual (docs) to ensure everything works correctly. This process prevents crashes and confusion for future users.