Skip to content

Commit

Permalink
Merge pull request #1067 from chitoyuu/chore/appease-clippy
Browse files Browse the repository at this point in the history
Appease clippy
  • Loading branch information
chitoyuu committed Jan 20, 2024
2 parents c6f6eef + 2be9ad1 commit 7e55836
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 0 additions & 2 deletions gdnative-core/src/export/macros.rs

This file was deleted.

1 change: 0 additions & 1 deletion gdnative-core/src/export/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

mod class;
mod class_builder;
mod macros;
mod method;
mod property;
mod signal;
Expand Down
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 7e55836

Please sign in to comment.