1
Fork 0

Move equal sign back into head ibox

This commit is contained in:
David Tolnay 2021-12-29 11:53:03 -08:00
parent b7df49895c
commit b62163515a
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82
3 changed files with 5 additions and 5 deletions

View file

@ -1116,9 +1116,11 @@ impl<'a> State<'a> {
self.print_ident(ident);
self.word_space(":");
self.print_type(ty);
if body.is_some() {
self.space();
}
self.end(); // end the head-ibox
if let Some(body) = body {
self.space();
self.word_space("=");
self.print_expr(body);
}