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. |
const_static_lifetime | |
consts | |
copies | |
cyclomatic_complexity |
calculate cyclomatic complexity and warn about overly complex functions |
derive | |
doc | |
double_comparison |
Lint on unnecessary double comparisons. Some examples: |
double_parens | |
drop_forget_ref | |
else_if_without_else |
lint on if expressions with an else if, but without a final else branch |
empty_enum |
lint when there is an enum with no variants |
entry | |
enum_clike |
lint on C-like enums that are |
enum_glob_use |
lint on |
enum_variants |
lint on enum variants that are prefixed or suffixed by the same characters |
eq_op | |
erasing_op | |
escape | |
eta_reduction | |
eval_order_dependence | |
explicit_write | |
fallible_impl_from | |
format | |
formatting | |
functions | |
identity_conversion | |
identity_op | |
if_let_redundant_pattern_matching | |
if_not_else |
lint on if branches that could be swapped so no |
infinite_iter | |
inline_fn_without_body |
checks for |
int_plus_one |
lint on blocks unnecessarily using >= with a + 1 or - 1 |
invalid_ref | |
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_representation |
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 | |
ptr |
Checks for usage of |
question_mark | |
ranges | |
redundant_field_names | |
reference | |
regex | |
replace_consts | |
returns | |
serde_api | |
shadow | |
strings | |
suspicious_trait_impl | |
swap | |
temporary_assignment | |
transmute | |
types | |
unicode | |
unsafe_removed_from_name | |
unused_io_amount | |
unused_label | |
use_self | |
utils | |
vec | |
zero_div_zero |
Functions
register_plugins |