Function rustfmt_nightly::expr::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.