提交 6bff9de8 编写于 作者: J Jorge Aparicio

serialize: fix fallout

上级 f3333d5e
......@@ -1324,7 +1324,9 @@ pub struct Parser<T> {
state: ParserState,
}
impl<T: Iterator<char>> Iterator<JsonEvent> for Parser<T> {
impl<T: Iterator<Item=char>> Iterator for Parser<T> {
type Item = JsonEvent;
fn next(&mut self) -> Option<JsonEvent> {
if self.state == ParseFinished {
return None;
......@@ -1345,7 +1347,7 @@ fn next(&mut self) -> Option<JsonEvent> {
}
}
impl<T: Iterator<char>> Parser<T> {
impl<T: Iterator<Item=char>> Parser<T> {
/// Creates the JSON parser.
pub fn new(rdr: T) -> Parser<T> {
let mut p = Parser {
......@@ -1867,7 +1869,7 @@ pub struct Builder<T> {
token: Option<JsonEvent>,
}
impl<T: Iterator<char>> Builder<T> {
impl<T: Iterator<Item=char>> Builder<T> {
/// Create a JSON Builder.
pub fn new(src: T) -> Builder<T> {
Builder { parser: Parser::new(src), token: None, }
......
......@@ -25,6 +25,7 @@
#![allow(unknown_features)]
#![feature(macro_rules, default_type_params, phase, slicing_syntax, globs)]
#![feature(unboxed_closures)]
#![feature(associated_types)]
// test harness access
#[cfg(test)]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册