Skip to content

Commit a56f214

Browse files
committed
format cond
1 parent e0919de commit a56f214

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/rustc_resolve/src/late.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -2296,14 +2296,16 @@ impl<'a: 'ast, 'b, 'ast> LateResolutionVisitor<'a, 'b, 'ast> {
22962296

22972297
let prev = self.diagnostic_metadata.current_block_could_be_bare_struct_literal.take();
22982298
if let (true, [Stmt { kind: StmtKind::Expr(expr), .. }]) =
2299-
(block.could_be_bare_literal, &block.stmts[..]) && let ExprKind::Type(..) = expr.kind
2299+
(block.could_be_bare_literal, &block.stmts[..])
2300+
&& let ExprKind::Type(..) = expr.kind
23002301
{
23012302
self.diagnostic_metadata.current_block_could_be_bare_struct_literal =
23022303
Some(block.span);
23032304
}
23042305
// Descend into the block.
23052306
for stmt in &block.stmts {
2306-
if let StmtKind::Item(ref item) = stmt.kind && let ItemKind::MacroDef(..) = item.kind {
2307+
if let StmtKind::Item(ref item) = stmt.kind
2308+
&& let ItemKind::MacroDef(..) = item.kind {
23072309
num_macro_definition_ribs += 1;
23082310
let res = self.r.local_def_id(item.id).to_def_id();
23092311
self.ribs[ValueNS].push(Rib::new(MacroDefinition(res)));

0 commit comments

Comments
 (0)