Skip to content

Commit 0c557e3

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 168642 b: refs/heads/batch c: 6bff9de h: refs/heads/master v: v3
1 parent 9dfd41c commit 0c557e3

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ refs/tags/0.12.0: f0c419429ef30723ceaf6b42f9b5a2aeb5d2e2d1
2929
refs/heads/issue-18208-method-dispatch-2: 9e1eae4fb9b6527315b4441cf8a0f5ca911d1671
3030
refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
32-
refs/heads/batch: f3333d5e1058e6e36c3754ae29ce6c708b35f082
32+
refs/heads/batch: 6bff9de8eaa511807e9d6a323d57591b6d2ddcc6
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970

branches/batch/src/libserialize/json.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,9 @@ pub struct Parser<T> {
13241324
state: ParserState,
13251325
}
13261326

1327-
impl<T: Iterator<char>> Iterator<JsonEvent> for Parser<T> {
1327+
impl<T: Iterator<Item=char>> Iterator for Parser<T> {
1328+
type Item = JsonEvent;
1329+
13281330
fn next(&mut self) -> Option<JsonEvent> {
13291331
if self.state == ParseFinished {
13301332
return None;
@@ -1345,7 +1347,7 @@ impl<T: Iterator<char>> Iterator<JsonEvent> for Parser<T> {
13451347
}
13461348
}
13471349

1348-
impl<T: Iterator<char>> Parser<T> {
1350+
impl<T: Iterator<Item=char>> Parser<T> {
13491351
/// Creates the JSON parser.
13501352
pub fn new(rdr: T) -> Parser<T> {
13511353
let mut p = Parser {
@@ -1867,7 +1869,7 @@ pub struct Builder<T> {
18671869
token: Option<JsonEvent>,
18681870
}
18691871

1870-
impl<T: Iterator<char>> Builder<T> {
1872+
impl<T: Iterator<Item=char>> Builder<T> {
18711873
/// Create a JSON Builder.
18721874
pub fn new(src: T) -> Builder<T> {
18731875
Builder { parser: Parser::new(src), token: None, }

branches/batch/src/libserialize/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Core encoding and decoding interfaces.
2525
#![allow(unknown_features)]
2626
#![feature(macro_rules, default_type_params, phase, slicing_syntax, globs)]
2727
#![feature(unboxed_closures)]
28+
#![feature(associated_types)]
2829

2930
// test harness access
3031
#[cfg(test)]

0 commit comments

Comments
 (0)