about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorJorge Aparicio <japaricious@gmail.com>2015-01-20 18:15:28 -0500
committerJorge Aparicio <japaricious@gmail.com>2015-01-20 18:15:28 -0500
commit00cddb068c4cb17a91cca646103e0fba8c0a8077 (patch)
tree28313f9c43b736894110bf2bb91ed77f7c6815c8 /src/liballoc
parent74e111caf6d9634917f77977a4e51e562498be87 (diff)
downloadrust-00cddb068c4cb17a91cca646103e0fba8c0a8077.tar.gz
rust-00cddb068c4cb17a91cca646103e0fba8c0a8077.zip
also forward Iterator::size_hint()
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/boxed.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/liballoc/boxed.rs b/src/liballoc/boxed.rs
index 89de2c953e4..7965c00a365 100644
--- a/src/liballoc/boxed.rs
+++ b/src/liballoc/boxed.rs
@@ -194,6 +194,10 @@ impl<'a, T> Iterator for Box<Iterator<Item=T> + 'a> {
     fn next(&mut self) -> Option<T> {
         (**self).next()
     }
+
+    fn size_hint(&self) -> (usize, Option<usize>) {
+        (**self).size_hint()
+    }
 }
 
 #[cfg(test)]