File tree Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Expand file tree Collapse file tree 4 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 11#![ feature( stmt_expr_attributes) ]
2- #![ allow( redundant_semicolon , clippy:: no_effect) ]
2+ #![ allow( redundant_semicolons , clippy:: no_effect) ]
33
44#[ rustfmt:: skip]
55fn main ( ) {
Original file line number Diff line number Diff line change 11if_chain! {
22 if let ExprKind::Block(ref block) = expr.kind;
33 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;
85 then {
96 // report your lint here
107 }
Original file line number Diff line number Diff line change 55 clippy:: blacklisted_name,
66 clippy:: no_effect,
77 clippy:: redundant_clone,
8- redundant_semicolon ,
8+ redundant_semicolons ,
99 unused_assignments
1010) ]
1111
Original file line number Diff line number Diff line change 55 clippy:: blacklisted_name,
66 clippy:: no_effect,
77 clippy:: redundant_clone,
8- redundant_semicolon ,
8+ redundant_semicolons ,
99 unused_assignments
1010) ]
1111
You can’t perform that action at this time.
0 commit comments