Use constant instead of magic number
This commit is contained in:
parent
63fdf1a527
commit
73c1752b8e
2 changed files with 2 additions and 2 deletions
|
@ -1267,7 +1267,7 @@ impl<'a> State<'a> {
|
||||||
}
|
}
|
||||||
hir::ExprKind::Match(ref expr, ref arms, _) => {
|
hir::ExprKind::Match(ref expr, ref arms, _) => {
|
||||||
self.cbox(INDENT_UNIT);
|
self.cbox(INDENT_UNIT);
|
||||||
self.ibox(4);
|
self.ibox(INDENT_UNIT);
|
||||||
self.word_nbsp("match");
|
self.word_nbsp("match");
|
||||||
self.print_expr_as_cond(&expr);
|
self.print_expr_as_cond(&expr);
|
||||||
self.s.space();
|
self.s.space();
|
||||||
|
|
|
@ -1976,7 +1976,7 @@ impl<'a> State<'a> {
|
||||||
}
|
}
|
||||||
ast::ExprKind::Match(ref expr, ref arms) => {
|
ast::ExprKind::Match(ref expr, ref arms) => {
|
||||||
self.cbox(INDENT_UNIT);
|
self.cbox(INDENT_UNIT);
|
||||||
self.ibox(4);
|
self.ibox(INDENT_UNIT);
|
||||||
self.word_nbsp("match");
|
self.word_nbsp("match");
|
||||||
self.print_expr_as_cond(expr);
|
self.print_expr_as_cond(expr);
|
||||||
self.s.space();
|
self.s.space();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue