@@ -174,6 +174,7 @@ pub trait Iterator<A> {
174
174
/// assert!(it.peek().is_none());
175
175
/// assert!(it.next().is_none());
176
176
/// ~~~
177
+ #[ inline]
177
178
fn peekable ( self ) -> Peekable < A , Self > {
178
179
Peekable { iter : self , peeked : None }
179
180
}
@@ -931,17 +932,15 @@ impl<'self, A, B, T: Iterator<A>> Iterator<B> for Map<'self, A, B, T> {
931
932
}
932
933
}
933
934
934
- impl < ' self , A , B , T : DoubleEndedIterator < A > > DoubleEndedIterator < B >
935
- for Map < ' self , A , B , T > {
935
+ impl < ' self , A , B , T : DoubleEndedIterator < A > > DoubleEndedIterator < B > for Map < ' self , A , B , T > {
936
936
#[ inline]
937
937
fn next_back ( & mut self ) -> Option < B > {
938
938
let next = self . iter . next_back ( ) ;
939
939
self . do_map ( next)
940
940
}
941
941
}
942
942
943
- impl < ' self , A , B , T : RandomAccessIterator < A > > RandomAccessIterator < B >
944
- for Map < ' self , A , B , T > {
943
+ impl < ' self , A , B , T : RandomAccessIterator < A > > RandomAccessIterator < B > for Map < ' self , A , B , T > {
945
944
#[ inline]
946
945
fn indexable ( & self ) -> uint {
947
946
self . iter . indexable ( )
0 commit comments