api: Remove unneeded extra-traits syn feature

This commit is contained in:
Jonas Platte 2021-05-17 00:48:14 +02:00
parent 2a2cb8c4d2
commit 4d3cb94d99
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
3 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ edition = "2018"
proc-macro-crate = "1.0.0" proc-macro-crate = "1.0.0"
proc-macro2 = "1.0.24" proc-macro2 = "1.0.24"
quote = "1.0.8" quote = "1.0.8"
syn = { version = "1.0.57", features = ["full", "extra-traits", "visit"] } syn = { version = "1.0.57", features = ["full", "visit"] }
[lib] [lib]
proc-macro = true proc-macro = true

View File

@ -13,7 +13,7 @@ use super::metadata::Metadata;
mod incoming; mod incoming;
mod outgoing; mod outgoing;
#[derive(Debug, Default)] #[derive(Default)]
pub(super) struct RequestLifetimes { pub(super) struct RequestLifetimes {
pub body: BTreeSet<Lifetime>, pub body: BTreeSet<Lifetime>,
pub path: BTreeSet<Lifetime>, pub path: BTreeSet<Lifetime>,

View File

@ -37,5 +37,5 @@ pub(crate) fn import_ruma_api() -> TokenStream {
} }
pub(crate) fn is_cfg_attribute(attr: &Attribute) -> bool { pub(crate) fn is_cfg_attribute(attr: &Attribute) -> bool {
attr.style == AttrStyle::Outer && attr.path.is_ident("cfg") matches!(attr.style, AttrStyle::Outer) && attr.path.is_ident("cfg")
} }