diff options
author | Corey Farwell <coreyf@rwell.org> | 2017-09-13 20:23:58 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2017-09-13 20:29:27 -0400 |
commit | 9cd45353648bb18a432d5d682c835cfe1af7a1ea (patch) | |
tree | 1093c9faf8164a72f89cf335970d0a61a887b1dd /components/style/stylesheet_set.rs | |
parent | cad3aff508fdf47036237ead519791f180e1ea3d (diff) | |
download | servo-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.rs | 4 |
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. |