|
25 | 25 | use std::cast; |
26 | 26 | use std::ptr; |
27 | 27 | use std::util; |
28 | | -use std::iterator::{FromIterator, Extendable, Invert}; |
29 | | -use std::iterator; |
| 28 | +use std::iter::Invert; |
| 29 | +use std::iter; |
30 | 30 |
|
31 | 31 | use container::Deque; |
32 | 32 |
|
@@ -593,27 +593,27 @@ impl<A> Extendable<A> for DList<A> { |
593 | 593 | impl<A: Eq> Eq for DList<A> { |
594 | 594 | fn eq(&self, other: &DList<A>) -> bool { |
595 | 595 | self.len() == other.len() && |
596 | | - iterator::order::eq(self.iter(), other.iter()) |
| 596 | + iter::order::eq(self.iter(), other.iter()) |
597 | 597 | } |
598 | 598 |
|
599 | 599 | fn ne(&self, other: &DList<A>) -> bool { |
600 | 600 | self.len() != other.len() || |
601 | | - iterator::order::ne(self.iter(), other.iter()) |
| 601 | + iter::order::ne(self.iter(), other.iter()) |
602 | 602 | } |
603 | 603 | } |
604 | 604 |
|
605 | 605 | impl<A: Eq + Ord> Ord for DList<A> { |
606 | 606 | fn lt(&self, other: &DList<A>) -> bool { |
607 | | - iterator::order::lt(self.iter(), other.iter()) |
| 607 | + iter::order::lt(self.iter(), other.iter()) |
608 | 608 | } |
609 | 609 | fn le(&self, other: &DList<A>) -> bool { |
610 | | - iterator::order::le(self.iter(), other.iter()) |
| 610 | + iter::order::le(self.iter(), other.iter()) |
611 | 611 | } |
612 | 612 | fn gt(&self, other: &DList<A>) -> bool { |
613 | | - iterator::order::gt(self.iter(), other.iter()) |
| 613 | + iter::order::gt(self.iter(), other.iter()) |
614 | 614 | } |
615 | 615 | fn ge(&self, other: &DList<A>) -> bool { |
616 | | - iterator::order::ge(self.iter(), other.iter()) |
| 616 | + iter::order::ge(self.iter(), other.iter()) |
617 | 617 | } |
618 | 618 | } |
619 | 619 |
|
|
0 commit comments