@@ -499,8 +499,9 @@ pub mod reader {
499
499
Ok ( result)
500
500
}
501
501
502
- fn read_enum_variant < T , F > ( & mut self , _: & [ & str ] , f : F ) -> DecodeResult < T > where
503
- F : FnOnce ( & mut Decoder < ' doc > , uint ) -> DecodeResult < T > ,
502
+ fn read_enum_variant < T , F > ( & mut self , _: & [ & str ] ,
503
+ mut f : F ) -> DecodeResult < T >
504
+ where F : FnMut ( & mut Decoder < ' doc > , uint ) -> DecodeResult < T > ,
504
505
{
505
506
debug ! ( "read_enum_variant()" ) ;
506
507
let idx = try!( self . _next_uint ( EsEnumVid ) ) ;
@@ -526,8 +527,9 @@ pub mod reader {
526
527
f ( self )
527
528
}
528
529
529
- fn read_enum_struct_variant < T , F > ( & mut self , _: & [ & str ] , f : F ) -> DecodeResult < T > where
530
- F : FnOnce ( & mut Decoder < ' doc > , uint ) -> DecodeResult < T > ,
530
+ fn read_enum_struct_variant < T , F > ( & mut self , _: & [ & str ] ,
531
+ mut f : F ) -> DecodeResult < T >
532
+ where F : FnMut ( & mut Decoder < ' doc > , uint ) -> DecodeResult < T > ,
531
533
{
532
534
debug ! ( "read_enum_struct_variant()" ) ;
533
535
let idx = try!( self . _next_uint ( EsEnumVid ) ) ;
@@ -610,8 +612,8 @@ pub mod reader {
610
612
self . read_tuple_arg ( idx, f)
611
613
}
612
614
613
- fn read_option < T , F > ( & mut self , f : F ) -> DecodeResult < T > where
614
- F : FnOnce ( & mut Decoder < ' doc > , bool ) -> DecodeResult < T > ,
615
+ fn read_option < T , F > ( & mut self , mut f : F ) -> DecodeResult < T > where
616
+ F : FnMut ( & mut Decoder < ' doc > , bool ) -> DecodeResult < T > ,
615
617
{
616
618
debug ! ( "read_option()" ) ;
617
619
self . read_enum ( "Option" , move |this| {
0 commit comments