Skip to content

Commit 06e00e0

Browse files
chore: fix compiler warning (#4051)
1 parent 05825a8 commit 06e00e0

File tree

1 file changed

+2
-2
lines changed
  • rustfmt-core/rustfmt-lib/src

1 file changed

+2
-2
lines changed

rustfmt-core/rustfmt-lib/src/expr.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1157,10 +1157,10 @@ pub(crate) fn is_simple_block(
11571157
block: &ast::Block,
11581158
attrs: Option<&[ast::Attribute]>,
11591159
) -> bool {
1160-
(block.stmts.len() == 1
1160+
block.stmts.len() == 1
11611161
&& stmt_is_expr(&block.stmts[0])
11621162
&& !block_contains_comment(context, block)
1163-
&& attrs.map_or(true, |a| a.is_empty()))
1163+
&& attrs.map_or(true, |a| a.is_empty())
11641164
}
11651165

11661166
/// Checks whether a block contains at most one statement or expression, and no

0 commit comments

Comments
 (0)