File tree 3 files changed +2
-5
lines changed
gdnative-derive/src/variant 3 files changed +2
-5
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 15
15
16
16
mod class;
17
17
mod class_builder;
18
- mod macros;
19
18
mod method;
20
19
mod property;
21
20
mod signal;
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ impl VariantRepr {
155
155
VariantRepr :: Tuple ( fields) => {
156
156
if fields. len ( ) == 1 {
157
157
// as newtype
158
- let field = fields. get ( 0 ) . unwrap ( ) ;
158
+ let field = fields. first ( ) . unwrap ( ) ;
159
159
if field. attr . skip_to_variant {
160
160
return Err ( syn:: Error :: new (
161
161
field. ident . span ( ) ,
@@ -235,7 +235,7 @@ impl VariantRepr {
235
235
VariantRepr :: Tuple ( fields) => {
236
236
if fields. len ( ) == 1 {
237
237
// as newtype
238
- let field = fields. get ( 0 ) . unwrap ( ) ;
238
+ let field = fields. first ( ) . unwrap ( ) ;
239
239
if field. attr . skip_from_variant {
240
240
return Err ( syn:: Error :: new (
241
241
field. ident . span ( ) ,
You can’t perform that action at this time.
0 commit comments