File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
31
31
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32
32
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
33
33
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34
- refs/heads/beta: f015a3b871a7eade289842a868f6de580740d89c
34
+ refs/heads/beta: d727f9910729625039defffd4058b907ca984bb9
35
35
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
36
36
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
37
37
refs/heads/tmp: eb836bf767aa1d8d4cba488a9091cde3c0ab4b2f
Original file line number Diff line number Diff line change @@ -1059,8 +1059,8 @@ pub mod writer {
1059
1059
self . end_tag ( )
1060
1060
}
1061
1061
1062
- fn emit_map_elt_key < F > ( & mut self , _idx : uint , mut f : F ) -> EncodeResult where
1063
- F : FnMut ( & mut Encoder < ' a , W > ) -> EncodeResult ,
1062
+ fn emit_map_elt_key < F > ( & mut self , _idx : uint , f : F ) -> EncodeResult where
1063
+ F : FnOnce ( & mut Encoder < ' a , W > ) -> EncodeResult ,
1064
1064
{
1065
1065
1066
1066
try!( self . start_tag ( EsMapKey as uint ) ) ;
Original file line number Diff line number Diff line change @@ -668,8 +668,8 @@ impl<'a> ::Encoder for Encoder<'a> {
668
668
Ok ( ( ) )
669
669
}
670
670
671
- fn emit_map_elt_key < F > ( & mut self , idx : uint , mut f : F ) -> EncodeResult where
672
- F : FnMut ( & mut Encoder < ' a > ) -> EncodeResult ,
671
+ fn emit_map_elt_key < F > ( & mut self , idx : uint , f : F ) -> EncodeResult where
672
+ F : FnOnce ( & mut Encoder < ' a > ) -> EncodeResult ,
673
673
{
674
674
if self . is_emitting_map_key { return Err ( EncoderError :: BadHashmapKey ) ; }
675
675
if idx != 0 { try!( write ! ( self . writer, "," ) ) }
@@ -961,8 +961,8 @@ impl<'a> ::Encoder for PrettyEncoder<'a> {
961
961
Ok ( ( ) )
962
962
}
963
963
964
- fn emit_map_elt_key < F > ( & mut self , idx : uint , mut f : F ) -> EncodeResult where
965
- F : FnMut ( & mut PrettyEncoder < ' a > ) -> EncodeResult ,
964
+ fn emit_map_elt_key < F > ( & mut self , idx : uint , f : F ) -> EncodeResult where
965
+ F : FnOnce ( & mut PrettyEncoder < ' a > ) -> EncodeResult ,
966
966
{
967
967
if self . is_emitting_map_key { return Err ( EncoderError :: BadHashmapKey ) ; }
968
968
if idx == 0 {
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ pub trait Encoder {
98
98
fn emit_map < F > ( & mut self , len : uint , f : F ) -> Result < ( ) , Self :: Error >
99
99
where F : FnOnce ( & mut Self ) -> Result < ( ) , Self :: Error > ;
100
100
fn emit_map_elt_key < F > ( & mut self , idx : uint , f : F ) -> Result < ( ) , Self :: Error >
101
- where F : FnMut ( & mut Self ) -> Result < ( ) , Self :: Error > ;
101
+ where F : FnOnce ( & mut Self ) -> Result < ( ) , Self :: Error > ;
102
102
fn emit_map_elt_val < F > ( & mut self , idx : uint , f : F ) -> Result < ( ) , Self :: Error >
103
103
where F : FnOnce ( & mut Self ) -> Result < ( ) , Self :: Error > ;
104
104
}
You can’t perform that action at this time.
0 commit comments