fix redundant closures in component/script/dom (#31917)

* fixed unnecessary conversions

* resolved conflicts

* resolved conflicts

* fix redundant closures in component/script/dom

* resolved conflicts

* fixed formatting
This commit is contained in:
Ekta Siwach 2024-03-28 14:36:02 +05:30 committed by GitHub
parent f183170786
commit 1bc63801e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 35 additions and 44 deletions

View file

@ -44,12 +44,7 @@ impl XRRenderState {
depth_far: Cell::new(depth_far),
inline_vertical_fov: Cell::new(inline_vertical_fov),
base_layer: MutNullableDom::new(layer),
layers: DomRefCell::new(
layers
.into_iter()
.map(|layer| Dom::from_ref(layer))
.collect(),
),
layers: DomRefCell::new(layers.into_iter().map(Dom::from_ref).collect()),
}
}