Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
namse committed Jun 25, 2024
1 parent 7c6f4f3 commit 7f42dd9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions luda-editor/new-server/database/schema/macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ fn struct_create_define(

struct Parsed<'a> {
name: &'a Ident,
data_struct: &'a DataStruct,
attrs_removed_input: DeriveInput,
pk_fields_without_pk_attr: Vec<Field>,
fields_without_pk_attr: Vec<Field>,
Expand All @@ -241,11 +240,6 @@ struct Parsed<'a> {
impl<'a> Parsed<'a> {
fn new(input: &'a DeriveInput) -> Self {
let name = &input.ident;
let data_struct = match &input.data {
Data::Struct(data) => data,
_ => panic!("Document can only be derived on structs"),
};

let mut attrs_removed_input = input.clone();
let mut pk_fields_without_pk_attr = Vec::new();
let mut fields_without_pk_attr = Vec::new();
Expand All @@ -265,7 +259,6 @@ impl<'a> Parsed<'a> {

Self {
name,
data_struct,
attrs_removed_input,
pk_fields_without_pk_attr,
fields_without_pk_attr,
Expand Down

0 comments on commit 7f42dd9

Please sign in to comment.