Function rustfmt_nightly::expr::is_simple_block_stmt [−][src]
pub(crate) fn is_simple_block_stmt(
context: &RewriteContext<'_>,
block: &Block,
attrs: Option<&[Attribute]>
) -> boolExpand description
Checks whether a block contains at most one statement or expression, and no comments or attributes.