AssocImplKind::{Method -> Fn}.

This commit is contained in:
Mazdak Farrokhzad
2019-12-08 00:13:59 +01:00
parent abf2e7aa95
commit e52f902a8a
16 changed files with 31 additions and 35 deletions

View File

@@ -1528,7 +1528,7 @@ impl<'a> State<'a> {
ast::AssocItemKind::Const(ty, expr) => {
self.print_associated_const(item.ident, ty, expr.as_deref(), &item.vis);
}
ast::AssocItemKind::Method(sig, body) => {
ast::AssocItemKind::Fn(sig, body) => {
if body.is_some() {
self.head("");
}