remove not need &mut in render_elements extend
This commit is contained in:
parent
3f86c5b94d
commit
b11fef8a90
|
@ -498,11 +498,11 @@ impl Space {
|
||||||
+ layer_popups.len(),
|
+ layer_popups.len(),
|
||||||
);
|
);
|
||||||
|
|
||||||
render_elements.extend(&mut custom_elements.iter().map(|l| l as &SpaceElem<R>));
|
render_elements.extend(custom_elements.iter().map(|l| l as &SpaceElem<R>));
|
||||||
render_elements.extend(&mut self.windows.iter().map(|l| l as &SpaceElem<R>));
|
render_elements.extend(self.windows.iter().map(|l| l as &SpaceElem<R>));
|
||||||
render_elements.extend(&mut window_popups.iter().map(|l| l as &SpaceElem<R>));
|
render_elements.extend(window_popups.iter().map(|l| l as &SpaceElem<R>));
|
||||||
render_elements.extend(&mut layer_map.layers().map(|l| l as &SpaceElem<R>));
|
render_elements.extend(layer_map.layers().map(|l| l as &SpaceElem<R>));
|
||||||
render_elements.extend(&mut layer_popups.iter().map(|l| l as &SpaceElem<R>));
|
render_elements.extend(layer_popups.iter().map(|l| l as &SpaceElem<R>));
|
||||||
|
|
||||||
render_elements.sort_by_key(|e| e.z_index());
|
render_elements.sort_by_key(|e| e.z_index());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue