diff --git a/compiler/rustc_ast_pretty/src/pprust/state.rs b/compiler/rustc_ast_pretty/src/pprust/state.rs index ad5154ab251..b05215d7a34 100644 --- a/compiler/rustc_ast_pretty/src/pprust/state.rs +++ b/compiler/rustc_ast_pretty/src/pprust/state.rs @@ -1166,8 +1166,11 @@ impl<'a> State<'a> { | ast::ExprKind::Closure(..) | ast::ExprKind::Ret(..) | ast::ExprKind::Yeet(..) => true, - _ => parser::contains_exterior_struct_lit(expr), - } || parser::needs_par_as_let_scrutinee(expr.precedence().order()), + _ => { + parser::contains_exterior_struct_lit(expr) + || parser::needs_par_as_let_scrutinee(expr.precedence().order()) + } + }, ); }