File tree 1 file changed +3
-8
lines changed
1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -20,20 +20,15 @@ use tokenizer::*;
20
20
21
21
// TODO: Use a trait?
22
22
enum ComponentValueIterator {
23
- ParserIter ( ~ Parser ) ,
23
+ ParserIter ( Parser ) ,
24
24
VectorIter ( vec:: ConsumeIterator < ( ComponentValue , SourceLocation ) > ) ,
25
25
}
26
26
27
27
28
28
impl ComponentValueIterator {
29
29
#[ inline]
30
30
pub fn from_str ( input : ~str ) -> ComponentValueIterator {
31
- ComponentValueIterator :: from_parser ( ~Parser :: from_str ( input) )
32
- }
33
-
34
- #[ inline]
35
- pub fn from_parser ( parser : ~Parser ) -> ComponentValueIterator {
36
- ParserIter ( parser)
31
+ ParserIter ( Parser :: from_str ( input) )
37
32
}
38
33
39
34
#[ inline]
@@ -54,7 +49,7 @@ impl ComponentValueIterator {
54
49
impl Iterator < ( ComponentValue , SourceLocation ) > for ComponentValueIterator {
55
50
fn next ( & mut self ) -> Option < ( ComponentValue , SourceLocation ) > {
56
51
match self {
57
- & ParserIter ( ref mut parser) => next_component_value ( * parser) ,
52
+ & ParserIter ( ref mut parser) => next_component_value ( parser) ,
58
53
& VectorIter ( ref mut iter) => iter. next ( )
59
54
}
60
55
}
You can’t perform that action at this time.
0 commit comments