Skip to content

Commit d1efad1

Browse files
committed
Delete unused original DeriveInput from ast
1 parent ed16526 commit d1efad1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

impl/src/ast.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ pub enum Input<'a> {
1212
}
1313

1414
pub struct Struct<'a> {
15-
pub original: &'a DeriveInput,
1615
pub attrs: Attrs<'a>,
1716
pub ident: Ident,
1817
pub generics: &'a Generics,
1918
pub fields: Vec<Field<'a>>,
2019
}
2120

2221
pub struct Enum<'a> {
23-
pub original: &'a DeriveInput,
2422
pub attrs: Attrs<'a>,
2523
pub ident: Ident,
2624
pub generics: &'a Generics,
@@ -65,7 +63,6 @@ impl<'a> Struct<'a> {
6563
display.expand_shorthand(&fields);
6664
}
6765
Ok(Struct {
68-
original: node,
6966
attrs,
7067
ident: node.ident.clone(),
7168
generics: &node.generics,
@@ -96,7 +93,6 @@ impl<'a> Enum<'a> {
9693
})
9794
.collect::<Result<_>>()?;
9895
Ok(Enum {
99-
original: node,
10096
attrs,
10197
ident: node.ident.clone(),
10298
generics: &node.generics,

0 commit comments

Comments
 (0)