We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05825a8 commit 06e00e0Copy full SHA for 06e00e0
rustfmt-core/rustfmt-lib/src/expr.rs
@@ -1157,10 +1157,10 @@ pub(crate) fn is_simple_block(
1157
block: &ast::Block,
1158
attrs: Option<&[ast::Attribute]>,
1159
) -> bool {
1160
- (block.stmts.len() == 1
+ block.stmts.len() == 1
1161
&& stmt_is_expr(&block.stmts[0])
1162
&& !block_contains_comment(context, block)
1163
- && attrs.map_or(true, |a| a.is_empty()))
+ && attrs.map_or(true, |a| a.is_empty())
1164
}
1165
1166
/// Checks whether a block contains at most one statement or expression, and no
0 commit comments