Rust tips @rust@octodon.social
Follow

Get automated improvement suggestions for your code from Clippy:

cargo +nightly install --force clippy

cargo clippy # run in your project directory

If some suggestions are too nitpicky for you, you can hide them by adding `allow(<clippy warning name>)` to your code:

#![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))]

Clippy depends on Rust compiler version, so you'll need to install it again after every update.

· Web · 0 · 0