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