summary refs log tree commit diff
path: root/src/libcore/slice.rs
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2015-01-05 20:47:21 -0500
committerJorge Aparicio <japaricious@gmail.com>2015-01-06 11:23:18 -0500
commitec133fed409d41569485a689fe07c6da035000bd (patch)
tree0bdfe85f7eb1d49ebf0d9e7c32d73875dbb35935 /src/libcore/slice.rs
parent8efd9901b628d687d11a4d0ccc153553b38ada49 (diff)
downloadrust-ec133fed409d41569485a689fe07c6da035000bd.tar.gz
rust-ec133fed409d41569485a689fe07c6da035000bd.zip
cleanup: use short AT notation (`Ty::Item` instead of `<Ty as Trait>::Item`)
Diffstat (limited to 'src/libcore/slice.rs')
-rw-r--r--src/libcore/slice.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/slice.rs b/src/libcore/slice.rs
index 093ed0b242f..7920e6ed773 100644
--- a/src/libcore/slice.rs
+++ b/src/libcore/slice.rs
@@ -873,7 +873,7 @@ impl<'a, T> ExactSizeIterator for IterMut<'a, T> {}
 trait SplitIter: DoubleEndedIterator {
     /// Mark the underlying iterator as complete, extracting the remaining
     /// portion of the slice.
-    fn finish(&mut self) -> Option< <Self as Iterator>::Item>;
+    fn finish(&mut self) -> Option<Self::Item>;
 }
 
 /// An iterator over subslices separated by elements that match a predicate
@@ -1038,7 +1038,7 @@ struct GenericSplitN<I> {
     invert: bool
 }
 
-impl<T, I: SplitIter + Iterator<Item=T>> Iterator for GenericSplitN<I> {
+impl<T, I: SplitIter<Item=T>> Iterator for GenericSplitN<I> {
     type Item = T;
 
     #[inline]