Pretty print empty blocks as {}
This commit is contained in:
@@ -2171,7 +2171,7 @@ impl<'a> State<'a> {
|
||||
match decl.output {
|
||||
hir::FnRetTy::Return(ref ty) => {
|
||||
self.print_type(&ty);
|
||||
self.maybe_print_comment(ty.span.lo())
|
||||
self.maybe_print_comment(ty.span.lo());
|
||||
}
|
||||
hir::FnRetTy::DefaultReturn(..) => unreachable!(),
|
||||
}
|
||||
@@ -2365,7 +2365,7 @@ impl<'a> State<'a> {
|
||||
self.end();
|
||||
|
||||
if let hir::FnRetTy::Return(ref output) = decl.output {
|
||||
self.maybe_print_comment(output.span.lo())
|
||||
self.maybe_print_comment(output.span.lo());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user