Refactor Attribute
to use Path
and TokenStream
instead of MetaItem
.
This commit is contained in:
parent
460bf55f8a
commit
68c1cc68b4
41 changed files with 623 additions and 371 deletions
|
@ -439,7 +439,7 @@ impl<'a> TraitDef<'a> {
|
|||
attrs.extend(item.attrs
|
||||
.iter()
|
||||
.filter(|a| {
|
||||
match &*a.name().as_str() {
|
||||
a.name().is_some() && match &*a.name().unwrap().as_str() {
|
||||
"allow" | "warn" | "deny" | "forbid" | "stable" | "unstable" => true,
|
||||
_ => false,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue