Add attributes for trait and methods as well
This commit is contained in:
parent
4ecf12bf0e
commit
26ad95c9d4
4 changed files with 53 additions and 13 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue