Use Ident instead of Name in MetaItem
This commit is contained in:
@@ -2966,7 +2966,7 @@ fn item_enum(w: &mut fmt::Formatter, cx: &Context, it: &clean::Item,
|
||||
}
|
||||
|
||||
fn render_attribute(attr: &ast::MetaItem) -> Option<String> {
|
||||
let name = attr.name();
|
||||
let name = attr.ident.name;
|
||||
|
||||
if attr.is_word() {
|
||||
Some(format!("{}", name))
|
||||
|
||||
Reference in New Issue
Block a user