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 @@ -10,7 +10,7 @@ refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
10
10
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
11
11
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
12
12
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
13
- refs/heads/auto: f015a3b871a7eade289842a868f6de580740d89c
13
+ refs/heads/auto: d727f9910729625039defffd4058b907ca984bb9
14
14
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
15
15
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
16
16
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336
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