Skip to content

Commit 2f7dc1b

Browse files
authored
Merge pull request #171 from memoryruins/struct_fold_macro_error
Fix struct_fold macro error
2 parents 82c113e + eb7acc5 commit 2f7dc1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fold.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -437,9 +437,9 @@ enum_fold!(ProgramClause[] { Implies(a), ForAll(a) });
437437
enum_fold!(InlineBound[] { TraitBound(a), ProjectionEqBound(a) });
438438

439439
macro_rules! struct_fold {
440-
($s:ident $([$($tt_args:tt)*])? { $($name:ident),* $(,)* } $($w:tt)*) => {
440+
($s:ident $([$($tt_args:tt)*])* { $($name:ident),* $(,)* } $($w:tt)*) => {
441441
struct_fold! {
442-
@parse_tt_args($($($tt_args)*)?)
442+
@parse_tt_args($($($tt_args)*)*)
443443
struct_name($s)
444444
parameters()
445445
self_args()

0 commit comments

Comments
 (0)