Skip to content

Commit

Permalink
Use constant instead of magic number
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark-Simulacrum committed Jul 10, 2019
1 parent 63fdf1a commit 73c1752
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/librustc/hir/print.rs
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/print/pprust.rs
Expand Up @@ -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();
Expand Down

0 comments on commit 73c1752

Please sign in to comment.