mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-24 06:33:33 +03:00
Merge pull request #926 from alexcrichton/fix-warnings
Filter only for `RustDeprecated` in attrs
This commit is contained in:
commit
0b736c7ef0
@ -679,6 +679,7 @@ pub fn get_rust_deprecated<'a>(ext_attrs: &Option<ExtendedAttributeList<'a>>)
|
||||
_ => None,
|
||||
}
|
||||
})
|
||||
.filter(|attr| attr.lhs_identifier.0 == "RustDeprecated")
|
||||
.filter_map(|ident| {
|
||||
match ident.rhs {
|
||||
IdentifierOrString::String(s) => Some(s),
|
||||
|
Loading…
Reference in New Issue
Block a user