File tree 2 files changed +7
-6
lines changed
lang/syn/src/codegen/accounts
tests/zero-copy/programs/zero-copy
2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -545,7 +545,7 @@ fn generate_constraint_init_group(
545
545
// Define the bump and pda variable.
546
546
#find_pda
547
547
548
- let #field: #ty_decl = ( ||{
548
+ let #field: #ty_decl = ( { # [ inline ( never ) ] ||{
549
549
// Checks that all the required accounts for this operation are present.
550
550
#optional_checks
551
551
@@ -580,7 +580,7 @@ fn generate_constraint_init_group(
580
580
}
581
581
}
582
582
Ok ( pa)
583
- } ) ( ) ?;
583
+ } } ) ( ) ?;
584
584
}
585
585
}
586
586
InitKind :: AssociatedToken {
@@ -616,7 +616,7 @@ fn generate_constraint_init_group(
616
616
// Define the bump and pda variable.
617
617
#find_pda
618
618
619
- let #field: #ty_decl = ( ||{
619
+ let #field: #ty_decl = ( { # [ inline ( never ) ] ||{
620
620
// Checks that all the required accounts for this operation are present.
621
621
#optional_checks
622
622
@@ -653,7 +653,7 @@ fn generate_constraint_init_group(
653
653
}
654
654
}
655
655
Ok ( pa)
656
- } ) ( ) ?;
656
+ } } ) ( ) ?;
657
657
}
658
658
}
659
659
InitKind :: Mint {
@@ -1012,7 +1012,7 @@ fn generate_constraint_init_group(
1012
1012
// Define the bump variable.
1013
1013
#find_pda
1014
1014
1015
- let #field = ( ||{
1015
+ let #field = ( { # [ inline ( never ) ] ||{
1016
1016
// Checks that all the required accounts for this operation are present.
1017
1017
#optional_checks
1018
1018
@@ -1058,7 +1058,7 @@ fn generate_constraint_init_group(
1058
1058
1059
1059
// Done.
1060
1060
Ok ( pa)
1061
- } ) ( ) ?;
1061
+ } } ) ( ) ?;
1062
1062
}
1063
1063
}
1064
1064
}
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ idl-build = ["anchor-lang/idl-build"]
19
19
20
20
[dependencies ]
21
21
anchor-lang = { path = " ../../../../lang" }
22
+ # anchor-lang = "0.30.0"
22
23
bytemuck = {version = " 1.4.0" , features = [" derive" , " min_const_generics" ]}
23
24
24
25
[dev-dependencies ]
You can’t perform that action at this time.
0 commit comments