Fix spacing of pretty printed const item without body
This commit is contained in:
@@ -1116,9 +1116,9 @@ impl<'a> State<'a> {
|
||||
self.print_ident(ident);
|
||||
self.word_space(":");
|
||||
self.print_type(ty);
|
||||
self.space();
|
||||
self.end(); // end the head-ibox
|
||||
if let Some(body) = body {
|
||||
self.space();
|
||||
self.word_space("=");
|
||||
self.print_expr(body);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user