Skip to content
Permalink
Browse files

Use constant instead of magic number

  • Loading branch information...
Mark-Simulacrum committed Jul 9, 2019
1 parent 63fdf1a commit 73c1752b8e9a6edb38cfadec25e430320300730b
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/librustc/hir/print.rs
  2. +1 −1 src/libsyntax/print/pprust.rs
@@ -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();
@@ -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();

0 comments on commit 73c1752

Please sign in to comment.
You can’t perform that action at this time.