mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Use more iterators in compositing component
This commit is contained in:
parent
acc0bf6873
commit
649e50f15c
2 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue