Make the pretty-printer output whitespace before obj drop clause
This commit is contained in:
parent
2593c50e75
commit
66b84e3f55
|
@ -507,7 +507,11 @@ fn print_item(s: &ps, item: &@ast::item) {
|
|||
print_block(s, meth.node.meth.body);
|
||||
}
|
||||
alt _obj.dtor {
|
||||
some(dtor) { head(s, "drop"); print_block(s, dtor.node.meth.body); }
|
||||
some(dtor) {
|
||||
space(s.s);
|
||||
head(s, "drop");
|
||||
print_block(s, dtor.node.meth.body);
|
||||
}
|
||||
_ { }
|
||||
}
|
||||
bclose(s, item.span);
|
||||
|
|
Loading…
Reference in New Issue