Skip to content

Commit

Permalink
Delete unused original DeriveInput from ast
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 15, 2023
1 parent ed16526 commit d1efad1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions impl/src/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ pub enum Input<'a> {
}

pub struct Struct<'a> {
pub original: &'a DeriveInput,
pub attrs: Attrs<'a>,
pub ident: Ident,
pub generics: &'a Generics,
pub fields: Vec<Field<'a>>,
}

pub struct Enum<'a> {
pub original: &'a DeriveInput,
pub attrs: Attrs<'a>,
pub ident: Ident,
pub generics: &'a Generics,
Expand Down Expand Up @@ -65,7 +63,6 @@ impl<'a> Struct<'a> {
display.expand_shorthand(&fields);
}
Ok(Struct {
original: node,
attrs,
ident: node.ident.clone(),
generics: &node.generics,
Expand Down Expand Up @@ -96,7 +93,6 @@ impl<'a> Enum<'a> {
})
.collect::<Result<_>>()?;
Ok(Enum {
original: node,
attrs,
ident: node.ident.clone(),
generics: &node.generics,
Expand Down

0 comments on commit d1efad1

Please sign in to comment.