Skip to content

Commit

Permalink
Remove unused bound field from codegen::TraitImpl
Browse files Browse the repository at this point in the history
Fixes clippy violation
  • Loading branch information
TedDriggs committed Jul 8, 2024
1 parent 05113d1 commit 303f12b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions core/src/codegen/trait_impl.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use proc_macro2::TokenStream;
use quote::quote;
use syn::{Generics, Ident, WherePredicate};
use syn::{Generics, Ident};

use crate::ast::{Data, Fields};
use crate::codegen::{
Expand All @@ -16,7 +16,6 @@ pub struct TraitImpl<'a> {
pub data: Data<Variant<'a>, Field<'a>>,
pub default: Option<DefaultExpression<'a>>,
pub post_transform: Option<&'a PostfixTransform>,
pub bound: Option<&'a [WherePredicate]>,
pub allow_unknown_fields: bool,
}

Expand Down
1 change: 0 additions & 1 deletion core/src/options/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,6 @@ impl<'a> From<&'a Core> for codegen::TraitImpl<'a> {
.map_enum_variants(|variant| variant.as_codegen_variant(&v.ident)),
default: v.as_codegen_default(),
post_transform: v.post_transform.as_ref(),
bound: v.bound.as_deref(),
allow_unknown_fields: v.allow_unknown_fields.unwrap_or_default(),
}
}
Expand Down

0 comments on commit 303f12b

Please sign in to comment.