1
Fork 0

Add attributes for trait and methods as well

This commit is contained in:
Guillaume Gomez 2018-05-22 00:31:45 +02:00
parent 4ecf12bf0e
commit 26ad95c9d4
4 changed files with 53 additions and 13 deletions

View file

@ -3055,6 +3055,7 @@ fn render_assoc_item(w: &mut fmt::Formatter,
} else {
(0, true)
};
render_attributes(w, meth)?;
write!(w, "{}{}{}{}fn <a href='{href}' class='fnname'>{name}</a>\
{generics}{decl}{where_clause}",
VisSpace(&meth.visibility),