mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
Empowering everyone to build reliable and efficient software.
examples | ||
src | ||
.gitignore | ||
Cargo.toml | ||
README.md |
rust-clippy
A collection of lints that give helpful tips to newbies.
Lints included in this crate:
clippy_single_match
: Warns when a match statement with a single nontrivial arm (i.e, where the other arm is_ => {}
) is used, and recommendsif let
instead.clippy_box_vec
: Warns on usage ofBox<Vec<T>>
clippy_dlist
: Warns on usage ofDList
clippy_str_to_string
: Warns on usage ofstr::to_string()
clippy_toplevel_ref_arg
: Warns when a function argument is declaredref
(i.e.fn foo(ref x: u8)
, but notfn foo((ref x, ref y): (u8, u8))
).
You can allow/warn/deny the whole set using the clippy
lint group (#[allow(clippy)]
, etc)
More to come, please file an issue if you have ideas!
Licensed under MPL. If you're having issues with the license, let me know and I'll try to change it to something more permissive.