2019-05-19 16:52:44 +02:00
|
|
|
if_chain! {
|
2019-09-27 17:16:06 +02:00
|
|
|
if let ExprKind::Block(ref block) = expr.kind;
|
2019-05-19 16:52:44 +02:00
|
|
|
if let Some(trailing_expr) = &block.expr;
|
2019-08-15 10:13:52 +02:00
|
|
|
if block.stmts.len() == 1;
|
2019-09-27 17:16:06 +02:00
|
|
|
if let StmtKind::Semi(ref e, _) = block.stmts[0].kind
|
|
|
|
if let ExprKind::Tup(ref elements) = e.kind;
|
2019-08-15 10:13:52 +02:00
|
|
|
if elements.len() == 0;
|
2019-05-19 16:52:44 +02:00
|
|
|
then {
|
|
|
|
// report your lint here
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if_chain! {
|
|
|
|
then {
|
|
|
|
// report your lint here
|
|
|
|
}
|
|
|
|
}
|