Skip to content

Commit

Permalink
Appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
chitoyuu committed Jan 20, 2024
1 parent c6f6eef commit 7b7f008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gdnative-derive/src/variant/repr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ impl VariantRepr {
VariantRepr::Tuple(fields) => {
if fields.len() == 1 {
// as newtype
let field = fields.get(0).unwrap();
let field = fields.first().unwrap();
if field.attr.skip_to_variant {
return Err(syn::Error::new(
field.ident.span(),
Expand Down Expand Up @@ -235,7 +235,7 @@ impl VariantRepr {
VariantRepr::Tuple(fields) => {
if fields.len() == 1 {
// as newtype
let field = fields.get(0).unwrap();
let field = fields.first().unwrap();
if field.attr.skip_from_variant {
return Err(syn::Error::new(
field.ident.span(),
Expand Down

0 comments on commit 7b7f008

Please sign in to comment.