about summary refs log tree commit diff
path: root/src/libextra/json.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-09-09 00:26:07 -0700
committerbors <bors@rust-lang.org>2013-09-09 00:26:07 -0700
commitd09f569aac99a4ef2f577d288d547504e3dcf588 (patch)
tree339ac953153d71da8730569b8bd26b41dc081539 /src/libextra/json.rs
parenteae327032c775813eeb101233a4f7df24eab0a6a (diff)
parent6919cf5fe14701621437fcb57f3a0c38fb394c65 (diff)
auto merge of #9065 : thestinger/rust/iter, r=alexcrichton
The trait will keep the `Iterator` naming, but a more concise module
name makes using the free functions less verbose. The module will define
iterables in addition to iterators, as it deals with iteration in
general.
Diffstat (limited to 'src/libextra/json.rs')
-rw-r--r--src/libextra/json.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libextra/json.rs b/src/libextra/json.rs
index ee3e1966fe2..f76dc05b277 100644
--- a/src/libextra/json.rs
+++ b/src/libextra/json.rs
@@ -18,7 +18,6 @@
 
 use std::char;
 use std::cast::transmute;
-use std::iterator;
 use std::float;
 use std::hashmap::HashMap;
 use std::io::WriterUtil;
@@ -489,7 +488,7 @@ pub struct Parser<T> {
 }
 
 /// Decode a json value from an Iterator<char>
-pub fn Parser<T : iterator::Iterator<char>>(rdr: ~T) -> Parser<T> {
+pub fn Parser<T : Iterator<char>>(rdr: ~T) -> Parser<T> {
     let mut p = Parser {
         rdr: rdr,
         ch: '\x00',
@@ -500,7 +499,7 @@ pub fn Parser<T : iterator::Iterator<char>>(rdr: ~T) -> Parser<T> {
     p
 }
 
-impl<T: iterator::Iterator<char>> Parser<T> {
+impl<T: Iterator<char>> Parser<T> {
     pub fn parse(&mut self) -> Result<Json, Error> {
         match self.parse_value() {
           Ok(value) => {
@@ -518,7 +517,7 @@ impl<T: iterator::Iterator<char>> Parser<T> {
     }
 }
 
-impl<T : iterator::Iterator<char>> Parser<T> {
+impl<T : Iterator<char>> Parser<T> {
     // FIXME: #8971: unsound
     fn eof(&self) -> bool { self.ch == unsafe { transmute(-1u32) } }