mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Rustfmt recent changes.
This commit is contained in:
parent
f7240751f5
commit
665db79274
8 changed files with 46 additions and 26 deletions
|
@ -704,8 +704,8 @@ impl<'le> GeckoElement<'le> {
|
|||
.map(GeckoElement)
|
||||
}
|
||||
} else {
|
||||
let binding_parent = unsafe { self.non_xul_xbl_binding_parent().as_ref() }
|
||||
.map(GeckoElement);
|
||||
let binding_parent =
|
||||
unsafe { self.non_xul_xbl_binding_parent().as_ref() }.map(GeckoElement);
|
||||
|
||||
debug_assert!(
|
||||
binding_parent ==
|
||||
|
@ -722,9 +722,8 @@ impl<'le> GeckoElement<'le> {
|
|||
#[inline]
|
||||
fn non_xul_xbl_binding_parent(&self) -> *mut RawGeckoElement {
|
||||
debug_assert!(!self.is_xul_element());
|
||||
self.extended_slots().map_or(ptr::null_mut(), |slots| {
|
||||
slots._base.mBindingParent.mRawPtr
|
||||
})
|
||||
self.extended_slots()
|
||||
.map_or(ptr::null_mut(), |slots| slots._base.mBindingParent.mRawPtr)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue