File tree 4 files changed +4
-7
lines changed
4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( stmt_expr_attributes) ]
2
- #![ allow( redundant_semicolon , clippy:: no_effect) ]
2
+ #![ allow( redundant_semicolons , clippy:: no_effect) ]
3
3
4
4
#[ rustfmt:: skip]
5
5
fn main ( ) {
Original file line number Diff line number Diff line change 1
1
if_chain! {
2
2
if let ExprKind::Block(ref block) = expr.kind;
3
3
if let Some(trailing_expr) = &block.expr;
4
- if block.stmts.len() == 1;
5
- if let StmtKind::Semi(ref e, _) = block.stmts[0].kind
6
- if let ExprKind::Tup(ref elements) = e.kind;
7
- if elements.len() == 0;
4
+ if block.stmts.len() == 0;
8
5
then {
9
6
// report your lint here
10
7
}
Original file line number Diff line number Diff line change 5
5
clippy::blacklisted_name,
6
6
clippy::no_effect,
7
7
clippy::redundant_clone,
8
- redundant_semicolon ,
8
+ redundant_semicolons ,
9
9
unused_assignments
10
10
)]
11
11
Original file line number Diff line number Diff line change 5
5
clippy:: blacklisted_name,
6
6
clippy:: no_effect,
7
7
clippy:: redundant_clone,
8
- redundant_semicolon ,
8
+ redundant_semicolons ,
9
9
unused_assignments
10
10
) ]
11
11
You can’t perform that action at this time.
0 commit comments