rustfmt_nightly::expr

Function is_empty_block

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

Checks whether a block contains no statements, expressions, comments, or inner attributes.