mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
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:
parent
f183170786
commit
1bc63801e7
26 changed files with 35 additions and 44 deletions
|
@ -97,7 +97,7 @@ impl VTTCueMethods for VTTCue {
|
|||
|
||||
// https://w3c.github.io/webvtt/#dom-vttcue-region
|
||||
fn SetRegion(&self, value: Option<&VTTRegion>) {
|
||||
*self.region.borrow_mut() = value.map(|r| Dom::from_ref(r))
|
||||
*self.region.borrow_mut() = value.map(Dom::from_ref)
|
||||
}
|
||||
|
||||
// https://w3c.github.io/webvtt/#dom-vttcue-vertical
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue