Knowledge Garden

Search

Search IconIcon to open search

Cargo Clippy for Rust

Last updated Dec 1, 2022 Edit Source

# Cargo Clippy

this tools helps to check for idiomatic code. it also checks for correctness errors, even if code compiles. It also checks for complexity.

if you want to ignore warnings you need to add an allow attributes.

1
#[allow(clippy::too_many_arguments)]

you can copy it right out of the clippy output just change from warn to allow.

Google clippy lints to learn about good code.