api: Remove unneeded extra-traits syn feature
This commit is contained in:
parent
2a2cb8c4d2
commit
4d3cb94d99
@ -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
|
||||||
|
@ -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>,
|
||||||
|
@ -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")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user