File tree 1 file changed +8
-6
lines changed
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1756,12 +1756,14 @@ impl<'a> rbml_decoder_decoder_helpers for reader::Decoder<'a> {
1756
1756
"FnMutUnboxedClosureKind" ,
1757
1757
"FnOnceUnboxedClosureKind"
1758
1758
] ;
1759
- let kind = self . read_enum_variant ( variants, |_, i| {
1760
- Ok ( match i {
1761
- 0 => ty:: FnUnboxedClosureKind ,
1762
- 1 => ty:: FnMutUnboxedClosureKind ,
1763
- 2 => ty:: FnOnceUnboxedClosureKind ,
1764
- _ => panic ! ( "bad enum variant for ty::UnboxedClosureKind" ) ,
1759
+ let kind = self . read_enum ( "UnboxedClosureKind" , |this| {
1760
+ this. read_enum_variant ( variants, |_, i| {
1761
+ Ok ( match i {
1762
+ 0 => ty:: FnUnboxedClosureKind ,
1763
+ 1 => ty:: FnMutUnboxedClosureKind ,
1764
+ 2 => ty:: FnOnceUnboxedClosureKind ,
1765
+ _ => panic ! ( "bad enum variant for ty::UnboxedClosureKind" ) ,
1766
+ } )
1765
1767
} )
1766
1768
} ) . unwrap ( ) ;
1767
1769
ty:: UnboxedClosure {
You can’t perform that action at this time.
0 commit comments