Skip to content

Commit

Permalink
Properly space and indent const arguments in blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jan 5, 2025
1 parent 9d24e92 commit 6623df0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/generics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}
Expand Down

0 comments on commit 6623df0

Please sign in to comment.