@@ -779,7 +779,7 @@ enum Decoder {
779
779
Record ( Vec < ( Cow < ' static , str > , Decoder ) > ) ,
780
780
While ( MatchTree , Box < Decoder > ) ,
781
781
Until ( MatchTree , Box < Decoder > ) ,
782
- RepeatFallback ( MatchTree , Box < Decoder > , Box < Decoder > ) ,
782
+ RepeatFallback ( Box < Decoder > , Box < Decoder > ) ,
783
783
RepeatCount ( Expr , Box < Decoder > ) ,
784
784
RepeatUntilLast ( Expr , Box < Decoder > ) ,
785
785
RepeatUntilSeq ( Expr , Box < Decoder > ) ,
@@ -2385,13 +2385,7 @@ impl Decoder {
2385
2385
Rc :: new ( Next :: Repeat ( wide, next. clone ( ) ) ) ,
2386
2386
) ?) ;
2387
2387
2388
- if let Some ( tree) =
2389
- MatchTree :: build ( compiler. module , std:: slice:: from_ref ( format) , next)
2390
- {
2391
- Ok ( Decoder :: RepeatFallback ( tree, dnarrow, dwide) )
2392
- } else {
2393
- Err ( format ! ( "canot build match treee for {:?}" , format) )
2394
- }
2388
+ Ok ( Decoder :: RepeatFallback ( dnarrow, dwide) )
2395
2389
}
2396
2390
Format :: Repeat1 ( a) => {
2397
2391
if a. is_nullable ( compiler. module ) {
@@ -2604,7 +2598,7 @@ impl Decoder {
2604
2598
}
2605
2599
Ok ( ( Value :: Seq ( v) , input) )
2606
2600
}
2607
- Decoder :: RepeatFallback ( _tree , subset, superset) => {
2601
+ Decoder :: RepeatFallback ( subset, superset) => {
2608
2602
let mut accum = Vec :: new ( ) ;
2609
2603
let mut incr_input = input;
2610
2604
0 commit comments