1
Fork 0

Fix spacing of pretty printed const item without body

This commit is contained in:
David Tolnay 2021-12-29 11:35:50 -08:00
parent 2b67c30bfe
commit b7df49895c
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
5 changed files with 18 additions and 16 deletions

View file

@ -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);
}