mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fixd some clippy warnings in components/script
This commit is contained in:
parent
92d9081366
commit
e74a03724f
3 changed files with 13 additions and 10 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>) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue