mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-11-24 14:42:35 +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,
|
_ => None,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.filter(|attr| attr.lhs_identifier.0 == "RustDeprecated")
|
||||||
.filter_map(|ident| {
|
.filter_map(|ident| {
|
||||||
match ident.rhs {
|
match ident.rhs {
|
||||||
IdentifierOrString::String(s) => Some(s),
|
IdentifierOrString::String(s) => Some(s),
|
||||||
|
Loading…
Reference in New Issue
Block a user