Skip to content

Commit f8f5fe8

Browse files
Oliver 'ker' SchneiderOliver Schneider
authored andcommitted
---
yaml --- r: 182338 b: refs/heads/beta c: d727f99 h: refs/heads/master v: v3
1 parent 38cf07e commit f8f5fe8

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b7fd822592a4fb577552d93010c4a4e14f314346
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: f015a3b871a7eade289842a868f6de580740d89c
34+
refs/heads/beta: d727f9910729625039defffd4058b907ca984bb9
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928
3636
refs/tags/1.0.0-alpha: e42bd6d93a1d3433c486200587f8f9e12590a4d7
3737
refs/heads/tmp: eb836bf767aa1d8d4cba488a9091cde3c0ab4b2f

branches/beta/src/librbml/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1059,8 +1059,8 @@ pub mod writer {
10591059
self.end_tag()
10601060
}
10611061

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,
10641064
{
10651065

10661066
try!(self.start_tag(EsMapKey as uint));

branches/beta/src/libserialize/json.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -668,8 +668,8 @@ impl<'a> ::Encoder for Encoder<'a> {
668668
Ok(())
669669
}
670670

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,
673673
{
674674
if self.is_emitting_map_key { return Err(EncoderError::BadHashmapKey); }
675675
if idx != 0 { try!(write!(self.writer, ",")) }
@@ -961,8 +961,8 @@ impl<'a> ::Encoder for PrettyEncoder<'a> {
961961
Ok(())
962962
}
963963

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,
966966
{
967967
if self.is_emitting_map_key { return Err(EncoderError::BadHashmapKey); }
968968
if idx == 0 {

branches/beta/src/libserialize/serialize.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub trait Encoder {
9898
fn emit_map<F>(&mut self, len: uint, f: F) -> Result<(), Self::Error>
9999
where F: FnOnce(&mut Self) -> Result<(), Self::Error>;
100100
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>;
102102
fn emit_map_elt_val<F>(&mut self, idx: uint, f: F) -> Result<(), Self::Error>
103103
where F: FnOnce(&mut Self) -> Result<(), Self::Error>;
104104
}

0 commit comments

Comments
 (0)