mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-13 17:13:48 +00:00
14 lines
256 B
Plaintext
14 lines
256 B
Plaintext
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
|
|
}
|
|
}
|