mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Updated fixes to clippy warnings in components/script
This commit is contained in:
parent
aabc422ccb
commit
5c71b925fb
3 changed files with 2 additions and 6 deletions
|
@ -2520,6 +2520,7 @@ impl Window {
|
||||||
|
|
||||||
impl Window {
|
impl Window {
|
||||||
#[allow(unsafe_code)]
|
#[allow(unsafe_code)]
|
||||||
|
#[allow(clippy::too_many_arguments)]
|
||||||
pub fn new(
|
pub fn new(
|
||||||
runtime: Rc<Runtime>,
|
runtime: Rc<Runtime>,
|
||||||
script_chan: MainThreadScriptChan,
|
script_chan: MainThreadScriptChan,
|
||||||
|
|
|
@ -98,9 +98,6 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ServoLayoutNode<'dom, LayoutDataType
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// # Safety
|
|
||||||
///
|
|
||||||
/// This function should not be called if there is no TrustedNodeAddress.
|
|
||||||
pub unsafe fn new(address: &TrustedNodeAddress) -> Self {
|
pub unsafe fn new(address: &TrustedNodeAddress) -> Self {
|
||||||
ServoLayoutNode::from_layout_js(LayoutDom::from_trusted_node_address(*address))
|
ServoLayoutNode::from_layout_js(LayoutDom::from_trusted_node_address(*address))
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,9 +70,7 @@ impl<'dom, LayoutDataType: LayoutDataTrait> ServoShadowRoot<'dom, LayoutDataType
|
||||||
phantom: PhantomData,
|
phantom: PhantomData,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// # Safety
|
|
||||||
///
|
|
||||||
/// This function should not mutate StyleSharedRwLockReadGuard.
|
|
||||||
pub unsafe fn flush_stylesheets(
|
pub unsafe fn flush_stylesheets(
|
||||||
&self,
|
&self,
|
||||||
stylist: &mut Stylist,
|
stylist: &mut Stylist,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue