Skip to content

Commit

Permalink
fix: burn-derive
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielsimard committed Oct 5, 2022
1 parent 7389ef2 commit d016c0b
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion burn-derive/src/config/analyzer_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use proc_macro2::{Ident, TokenStream};
use quote::quote;
use syn::Variant;

#[derive(Debug)]
pub struct ConfigEnumAnalyzer {
name: Ident,
data: syn::DataEnum,
Expand Down
1 change: 0 additions & 1 deletion burn-derive/src/config/analyzer_struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use crate::shared::{attribute::AttributeItem, field::FieldTypeAnalyzer};
use proc_macro2::{Ident, TokenStream};
use quote::quote;

#[derive(Debug)]
pub struct ConfigStructAnalyzer {
name: Ident,
fields_required: Vec<FieldTypeAnalyzer>,
Expand Down
3 changes: 1 addition & 2 deletions burn-derive/src/shared/attribute.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
use syn::{Attribute, Ident, Meta, NestedMeta};

#[derive(Debug)]
pub struct AttributeAnalyzer {
attr: Attribute,
}

#[derive(Debug, Clone)]
#[derive(Clone)]
pub struct AttributeItem {
pub ident: Ident,
pub value: syn::Lit,
Expand Down
2 changes: 1 addition & 1 deletion burn-derive/src/shared/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use super::attribute::AttributeAnalyzer;
use proc_macro2::Ident;
use syn::{Field, Type, TypePath};

#[derive(Debug, Clone)]
#[derive(Clone)]
pub struct FieldTypeAnalyzer {
pub field: Field,
}
Expand Down

0 comments on commit d016c0b

Please sign in to comment.