mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fixed some clippy warnings in components/script (#31950)
* Fixd some clippy warnings in components/script * Update node.rs Removed the ```# Safety ``` section. * Update shadow_root.rs Removed the ``` # Safety ``` section from components/script/layout_dom * Updated fixes to some clippy warnings in components/script * Revert "Updated fixes to some clippy warnings in components/script" This reverts commit2a37c3dec8
. * Updated fixes to clippy warnings in components/script * Revert "Updated fixes to clippy warnings in components/script" This reverts commit5780dc3a0a
. * Revert "Revert "Updated fixes to some clippy warnings in components/script"" This reverts commit98c411354a
. * Revert "Updated fixes to some clippy warnings in components/script" This reverts commit2a37c3dec8
. * Update shadow_root.rs (Ignore change) * Update node.rs (Ignore changes) * Updated fixes to clippy warnings in components/script * Removed trailing white space in componets/script/layout_dom_root.rs * Revert "Removed trailing white space in componets/script/layout_dom_root.rs" This reverts commit1976fd0405
. * Revert "Updated fixes to clippy warnings in components/script" This reverts commit5c71b925fb
. * Updated fixes to clippy warnings in components/script including review suggestions.
This commit is contained in:
parent
8c8d68e415
commit
c3360df918
2 changed files with 8 additions and 9 deletions
|
@ -2314,7 +2314,7 @@ impl Window {
|
|||
self.Document().url()
|
||||
}
|
||||
|
||||
pub fn with_layout<'a, T>(&self, call: impl FnOnce(&mut dyn Layout) -> T) -> Result<T, ()> {
|
||||
pub fn with_layout<T>(&self, call: impl FnOnce(&mut dyn Layout) -> T) -> Result<T, ()> {
|
||||
ScriptThread::with_layout(self.pipeline_id(), call)
|
||||
}
|
||||
|
||||
|
@ -2414,9 +2414,7 @@ impl Window {
|
|||
reply: IpcSender<Option<TimelineMarker>>,
|
||||
) {
|
||||
*self.devtools_marker_sender.borrow_mut() = Some(reply);
|
||||
self.devtools_markers
|
||||
.borrow_mut()
|
||||
.extend(markers.into_iter());
|
||||
self.devtools_markers.borrow_mut().extend(markers);
|
||||
}
|
||||
|
||||
pub fn drop_devtools_timeline_markers(&self, markers: Vec<TimelineMarkerType>) {
|
||||
|
@ -2522,6 +2520,7 @@ impl Window {
|
|||
|
||||
impl Window {
|
||||
#[allow(unsafe_code)]
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
pub fn new(
|
||||
runtime: Rc<Runtime>,
|
||||
script_chan: MainThreadScriptChan,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue