allow items_after_statements by default

This commit is contained in:
Andre Bogus 2016-04-23 07:50:46 +02:00
parent efb5417439
commit e3d86800ff
3 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ use utils::in_macro;
/// ```
declare_lint! {
pub ITEMS_AFTER_STATEMENTS,
Warn,
Allow,
"finds blocks where an item comes after a statement"
}

View file

@ -244,6 +244,7 @@ pub fn plugin_registrar(reg: &mut Registry) {
booleans::NONMINIMAL_BOOL,
enum_glob_use::ENUM_GLOB_USE,
if_not_else::IF_NOT_ELSE,
items_after_statements::ITEMS_AFTER_STATEMENTS,
matches::SINGLE_MATCH_ELSE,
mem_forget::MEM_FORGET,
methods::OPTION_UNWRAP_USED,
@ -297,7 +298,6 @@ pub fn plugin_registrar(reg: &mut Registry) {
formatting::SUSPICIOUS_ELSE_FORMATTING,
functions::TOO_MANY_ARGUMENTS,
identity_op::IDENTITY_OP,
items_after_statements::ITEMS_AFTER_STATEMENTS,
len_zero::LEN_WITHOUT_IS_EMPTY,
len_zero::LEN_ZERO,
lifetimes::NEEDLESS_LIFETIMES,