Crate clippy_lints [] [src]

Modules

approx_const
arithmetic
array_indexing
assign_ops
attrs

checks for attributes

bit_mask
blacklisted_name
block_in_if_condition
booleans
bytecount
collapsible_if

Checks for if expressions that contain only an if expression.

consts
copies
cyclomatic_complexity

calculate cyclomatic complexity and warn about overly complex functions

derive
doc
double_parens
drop_forget_ref
empty_enum

lint when there is an enum with no variants

entry
enum_clike

lint on C-like enums that are repr(isize/usize) and have values that don't fit into an i32

enum_glob_use

lint on useing all variants of an enum

enum_variants

lint on enum variants that are prefixed or suffixed by the same characters

eq_op
escape
eta_reduction
eval_order_dependence
format
formatting
functions
identity_op
if_let_redundant_pattern_matching
if_not_else

lint on if branches that could be swapped so no ! operation is necessary on the condition

infinite_iter
items_after_statements

lint when items are used after statements

large_enum_variant

lint when there is a large size difference between variants on an enum

len_zero
let_if_seq
lifetimes
literal_digit_grouping

Lints concerned with the grouping of digits with underscores in integral or floating-point literal expressions.

loops
map_clone
matches
mem_forget
methods
minmax
misc
misc_early
missing_doc
mut_mut
mut_reference
mutex_atomic

Checks for uses of mutex where an atomic value could be used

needless_bool

Checks for needless boolean results of if-else expressions

needless_borrow

Checks for needless address of operations (&)

needless_borrowed_ref

Checks for useless borrowed references.

needless_continue

Checks for continue statements in loops that are redundant.

needless_pass_by_value
needless_update
neg_multiply
new_without_default
no_effect
non_expressive_names
ok_if_let
open_options
overflow_check_conditional
panic
partialeq_ne_impl
precedence
print
ptr

Checks for usage of &Vec[_] and &String.

ranges
reference
regex
returns
serde_api
shadow
should_assert_eq
strings
swap
temporary_assignment
transmute
types
unicode
unsafe_removed_from_name
unused_io_amount
unused_label
use_self
utils
vec
zero_div_zero

Macros

if_let_chain

Produce a nested chain of if-lets and ifs from the patterns:

Functions

register_plugins