Skip to content

Commit da66367

Browse files
author
Jorge Aparicio
committed
---
yaml --- r: 171703 b: refs/heads/beta c: 6bff9de h: refs/heads/master i: 171701: 9642fd5 171699: 872553d 171695: fe1fbe8 v: v3
1 parent 5ca6801 commit da66367

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
@@ -31,5 +31,5 @@ refs/heads/automation-fail: 1bf06495443584539b958873e04cc2f864ab10e4
3131
refs/heads/issue-18208-method-dispatch-3-quick-reject: 2009f85b9f99dedcec4404418eda9ddba90258a2
3232
refs/heads/batch: b5571ed71a5879c0495a982506258d5d267744ed
3333
refs/heads/building: 126db549b038c84269a1e4fe46f051b2c15d6970
34-
refs/heads/beta: f3333d5e1058e6e36c3754ae29ce6c708b35f082
34+
refs/heads/beta: 6bff9de8eaa511807e9d6a323d57591b6d2ddcc6
3535
refs/heads/windistfix: 7608dbad651f02e837ed05eef3d74a6662a6e928

branches/beta/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/beta/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)