What problem does it solve?
This Skill helps you write or edit Rust code so it conforms to clippy-aligned best practices, improving clarity, safety, and maintainability while reducing warning noise.
Core Features & Use Cases
- Clippy-driven improvements: chooses the simplest correct Rust patterns that naturally satisfy clippy, turning warnings into actionable refinement.
- Rust idioms for Results and Options: uses direct
Result flow and idiomatic Option predicates like is_some_and to keep control flow clear.
- Maintainable code structure: encourages small single-purpose functions, necessary imports only, borrow-scope clarity, and grouped function signatures via structs/config types.
Use case: You have a Rust module that builds but produces clippy warnings; apply this Skill to refactor it into idiomatic, warning-clean code with clearer data flow and safer string/borrowing behavior.
Quick Start
Ask the AI to apply the format_rust guidelines to the Rust file you’re editing and return a clippy-aligned revision.