1
Fork 0

Use constant instead of magic number

This commit is contained in:
Mark Rousskov 2019-07-09 09:49:37 -04:00
parent 63fdf1a527
commit 73c1752b8e
2 changed files with 2 additions and 2 deletions

View file

@ -1267,7 +1267,7 @@ impl<'a> State<'a> {
}
hir::ExprKind::Match(ref expr, ref arms, _) => {
self.cbox(INDENT_UNIT);
self.ibox(4);
self.ibox(INDENT_UNIT);
self.word_nbsp("match");
self.print_expr_as_cond(&expr);
self.s.space();

View file

@ -1976,7 +1976,7 @@ impl<'a> State<'a> {
}
ast::ExprKind::Match(ref expr, ref arms) => {
self.cbox(INDENT_UNIT);
self.ibox(4);
self.ibox(INDENT_UNIT);
self.word_nbsp("match");
self.print_expr_as_cond(expr);
self.s.space();