From 6623df065cc234e42d1431aedb7b0146049e2446 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 5 Jan 2025 12:26:20 -0800 Subject: [PATCH] Properly space and indent const arguments in blocks --- src/generics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generics.rs b/src/generics.rs index e1226d6..3f225b8 100644 --- a/src/generics.rs +++ b/src/generics.rs @@ -374,9 +374,9 @@ impl Printer { Expr::Block(expr) => self.expr_block(expr), _ => { - self.word("{"); - self.expr(expr); - self.word("}"); + self.cbox(INDENT); + self.expr_as_small_block(expr, 0); + self.end(); } } }