Skip to content

Commit eb7acc5

Browse files
committed
Fix struct_fold macro error
1 parent 82c113e commit eb7acc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fold.rs

Lines changed: 2 additions & 2 deletions
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)