Remove Debug impls and syn's extra-trait features

This commit is contained in:
Lukas Kalbertodt
2021-07-28 12:03:43 +02:00
parent 8a520927a2
commit 313d143486
2 changed files with 1 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ edition = "2018"
proc-macro = true
[dependencies]
syn = { version = "1.0", features = ["extra-traits"] }
syn = "1.0"
quote = "1.0"
proc-macro2 = "1.0"
heck = "0.3.2"

View File

@@ -6,7 +6,6 @@ use crate::util::{is_option, unwrap_option};
/// The parsed input to the `gen_config` macro.
#[derive(Debug)]
pub(crate) struct Input {
pub(crate) doc: Vec<String>,
pub(crate) visibility: syn::Visibility,
@@ -14,7 +13,6 @@ pub(crate) struct Input {
pub(crate) fields: Vec<Field>,
}
#[derive(Debug)]
pub(crate) struct Field {
pub(crate) doc: Vec<String>,
pub(crate) name: syn::Ident,
@@ -26,7 +24,6 @@ pub(crate) struct Field {
// - example
}
#[derive(Debug)]
pub(crate) enum FieldKind {
Leaf {
env: Option<String>,
@@ -39,7 +36,6 @@ pub(crate) enum FieldKind {
},
}
#[derive(Debug)]
pub(crate) enum LeafKind {
/// A non-optional leaf. `ty` is not `Option<_>`.
Required {
@@ -61,7 +57,6 @@ impl LeafKind {
/// The kinds of expressions (just literals) we allow for default or example
/// values.
#[derive(Debug)]
pub(crate) enum Expr {
Str(syn::LitStr),
Int(syn::LitInt),