diff options
| author | bors <bors@rust-lang.org> | 2013-09-09 00:26:07 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-09 00:26:07 -0700 |
| commit | d09f569aac99a4ef2f577d288d547504e3dcf588 (patch) | |
| tree | 339ac953153d71da8730569b8bd26b41dc081539 /src/libstd/fmt/parse.rs | |
| parent | eae327032c775813eeb101233a4f7df24eab0a6a (diff) | |
| parent | 6919cf5fe14701621437fcb57f3a0c38fb394c65 (diff) | |
| download | rust-d09f569aac99a4ef2f577d288d547504e3dcf588.tar.gz rust-d09f569aac99a4ef2f577d288d547504e3dcf588.zip | |
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/libstd/fmt/parse.rs')
| -rw-r--r-- | src/libstd/fmt/parse.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libstd/fmt/parse.rs b/src/libstd/fmt/parse.rs index 245318c4699..fd0e86d7a31 100644 --- a/src/libstd/fmt/parse.rs +++ b/src/libstd/fmt/parse.rs @@ -12,7 +12,6 @@ use prelude::*; use char; use str; -use iterator; condition! { pub parse_error: ~str -> (); } @@ -152,7 +151,7 @@ pub struct Parser<'self> { priv depth: uint, } -impl<'self> iterator::Iterator<Piece<'self>> for Parser<'self> { +impl<'self> Iterator<Piece<'self>> for Parser<'self> { fn next(&mut self) -> Option<Piece<'self>> { match self.cur.clone().next() { Some((_, '#')) => { self.cur.next(); Some(CurrentArgument) } |
