mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-22 02:53:20 +00:00
14 lines
256 B
Text
14 lines
256 B
Text
|
if_chain! {
|
||
|
if let ExprKind::Block(ref block) = expr.node;
|
||
|
if let Some(trailing_expr) = &block.expr;
|
||
|
if block.stmts.len() == 0;
|
||
|
then {
|
||
|
// report your lint here
|
||
|
}
|
||
|
}
|
||
|
if_chain! {
|
||
|
then {
|
||
|
// report your lint here
|
||
|
}
|
||
|
}
|