Use Ident instead of Name in MetaItem

This commit is contained in:
Vadim Petrochenkov
2018-03-24 21:17:27 +03:00
parent 303298b1d5
commit 3a30bad6de
27 changed files with 138 additions and 164 deletions

View File

@@ -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))