aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/stylesheet_set.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2017-09-13 20:23:58 -0400
committerCorey Farwell <coreyf@rwell.org>2017-09-13 20:29:27 -0400
commit9cd45353648bb18a432d5d682c835cfe1af7a1ea (patch)
tree1093c9faf8164a72f89cf335970d0a61a887b1dd /components/style/stylesheet_set.rs
parentcad3aff508fdf47036237ead519791f180e1ea3d (diff)
downloadservo-9cd45353648bb18a432d5d682c835cfe1af7a1ea.tar.gz
servo-9cd45353648bb18a432d5d682c835cfe1af7a1ea.zip
Implement `size_hint` for more iterators.
``` implement size hint for more iterators because why not we like fast things ```
Diffstat (limited to 'components/style/stylesheet_set.rs')
-rw-r--r--components/style/stylesheet_set.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/style/stylesheet_set.rs b/components/style/stylesheet_set.rs
index 01e8bedc133..3dd76daba89 100644
--- a/components/style/stylesheet_set.rs
+++ b/components/style/stylesheet_set.rs
@@ -45,6 +45,10 @@ where
fn next(&mut self) -> Option<Self::Item> {
self.0.next().map(|entry| &entry.sheet)
}
+
+ fn size_hint(&self) -> (usize, Option<usize>) {
+ self.0.size_hint()
+ }
}
/// The validity of the data in a given cascade origin.