clippy_utils

Function is_block_like

Source
pub fn is_block_like(expr: &Expr<'_>) -> bool
Expand description

Returns true if the given expr is a block or resembled as a block, such as if, loop, match expressions etc.