Clippy is a linter for Rust code. Use $ cargo clippy to lint your code. Use $ rustup component add clippy to install Clippy first.
$ cargo clippy
$ rustup component add clippy