blob: c8ef75e48fc220ecf79eecbbcd62323cc39a8a70 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
if_chain! {
if let ExprKind::Block(ref block) = expr.kind;
if let Some(trailing_expr) = &block.expr;
if block.stmts.len() == 0;
then {
// report your lint here
}
}
if_chain! {
then {
// report your lint here
}
}
|