mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Updated fixes to some clippy warnings in components/script
This commit is contained in:
parent
e74a03724f
commit
2a37c3dec8
58 changed files with 156 additions and 265 deletions
|
@ -97,9 +97,6 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ServoLayoutNode<'dom, LayoutDataType
|
|||
phantom: PhantomData,
|
||||
}
|
||||
}
|
||||
/// # Safety
|
||||
///
|
||||
/// This function should not be called if there is no TrustedNodeAddress.
|
||||
pub unsafe fn new(address: &TrustedNodeAddress) -> Self {
|
||||
ServoLayoutNode::from_layout_js(LayoutDom::from_trusted_node_address(*address))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue