diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-11-06 18:19:30 -0500 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-11-06 18:35:33 -0500 |
commit | 649e50f15c54a6b463b5dd37cb45bdacfb132903 (patch) | |
tree | 65e585524d0586016b11459adac2ecd8d4202545 /components/compositing/surface_map.rs | |
parent | acc0bf68736d6e4aee2e370bf91fc2465415aa6e (diff) | |
download | servo-649e50f15c54a6b463b5dd37cb45bdacfb132903.tar.gz servo-649e50f15c54a6b463b5dd37cb45bdacfb132903.zip |
Use more iterators in compositing component
Diffstat (limited to 'components/compositing/surface_map.rs')
-rw-r--r-- | components/compositing/surface_map.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/compositing/surface_map.rs b/components/compositing/surface_map.rs index b773cd86e97..09a3b733dd9 100644 --- a/components/compositing/surface_map.rs +++ b/components/compositing/surface_map.rs @@ -68,7 +68,9 @@ impl SurfaceMap { } } - pub fn insert_surfaces(&mut self, display: &NativeDisplay, surfaces: Vec<NativeSurface>) { + pub fn insert_surfaces<I>(&mut self, display: &NativeDisplay, surfaces: I) + where I: IntoIterator<Item=NativeSurface> + { for surface in surfaces { self.insert(display, surface); } |