Skip to content

Commit 73c1752

Browse files
Use constant instead of magic number
1 parent 63fdf1a commit 73c1752

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc/hir/print.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ impl<'a> State<'a> {
12671267
}
12681268
hir::ExprKind::Match(ref expr, ref arms, _) => {
12691269
self.cbox(INDENT_UNIT);
1270-
self.ibox(4);
1270+
self.ibox(INDENT_UNIT);
12711271
self.word_nbsp("match");
12721272
self.print_expr_as_cond(&expr);
12731273
self.s.space();

src/libsyntax/print/pprust.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1976,7 +1976,7 @@ impl<'a> State<'a> {
19761976
}
19771977
ast::ExprKind::Match(ref expr, ref arms) => {
19781978
self.cbox(INDENT_UNIT);
1979-
self.ibox(4);
1979+
self.ibox(INDENT_UNIT);
19801980
self.word_nbsp("match");
19811981
self.print_expr_as_cond(expr);
19821982
self.s.space();

0 commit comments

Comments
 (0)