Skip to content

Commit cdbd345

Browse files
William UtterWilliam Utter
William Utter
authored and
William Utter
committed
formatting
1 parent 359c36c commit cdbd345

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

compiler/rustc_middle/src/ty/print/pretty.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,7 +1388,11 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
13881388
Ok(())
13891389
}
13901390

1391-
fn pretty_print_const_expr(&mut self, expr: Expr<'tcx>, print_ty: bool) -> Result<(), PrintError> {
1391+
fn pretty_print_const_expr(
1392+
&mut self,
1393+
expr: Expr<'tcx>,
1394+
print_ty: bool,
1395+
) -> Result<(), PrintError> {
13921396
define_scoped_cx!(self);
13931397
match expr {
13941398
Expr::Binop(op, c1, c2) => {
@@ -1430,11 +1434,11 @@ pub trait PrettyPrinter<'tcx>: Printer<'tcx> + fmt::Write {
14301434
}
14311435
}
14321436
p!(write(") -> {output_ty}"));
1433-
}else {
1437+
} else {
14341438
p!(comma_sep(fn_args.iter()), ")");
14351439
}
14361440
}
1437-
_ => bug!("unexpected type of fn def")
1441+
_ => bug!("unexpected type of fn def"),
14381442
}
14391443
}
14401444
Expr::Cast(kind, ct, ty) => {

0 commit comments

Comments
 (0)