rust-clippy/tests/ui/author/blocks.stdout
2020-03-04 00:56:43 +01:00

13 lines
256 B
Text

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
}
}