rustfmt_nightly::expr

Function is_simple_block_stmt

source
pub(crate) fn is_simple_block_stmt(
    context: &RewriteContext<'_>,
    block: &Block,
    attrs: Option<&[Attribute]>,
) -> bool
Expand description

Checks whether a block contains at most one statement or expression, and no comments or attributes.