mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
use self.0 instead of destructing single item tuple structs
This commit is contained in:
parent
68a8085a2f
commit
418842faf9
17 changed files with 38 additions and 58 deletions
|
@ -471,8 +471,7 @@ impl<'a> PreorderFlowTraversal for AbsoluteAssignBSizesTraversal<'a> {
|
|||
return
|
||||
}
|
||||
|
||||
let AbsoluteAssignBSizesTraversal(ref layout_context) = *self;
|
||||
block.calculate_absolute_block_size_and_margins(*layout_context);
|
||||
block.calculate_absolute_block_size_and_margins(&self.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ impl OpaqueNodeMethods for OpaqueNode {
|
|||
}
|
||||
|
||||
fn to_untrusted_node_address(&self) -> UntrustedNodeAddress {
|
||||
let OpaqueNode(addr) = *self;
|
||||
UntrustedNodeAddress(addr as *const c_void)
|
||||
UntrustedNodeAddress(self.0 as *const c_void)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue