mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Use if let in ScriptTask::notify_devtools.
This commit is contained in:
parent
b0841e007e
commit
2f88264351
1 changed files with 9 additions and 12 deletions
|
@ -1656,9 +1656,7 @@ impl ScriptTask {
|
|||
}
|
||||
|
||||
fn notify_devtools(&self, title: DOMString, url: Url, ids: (PipelineId, Option<WorkerId>)) {
|
||||
match self.devtools_chan {
|
||||
None => {}
|
||||
Some(ref chan) => {
|
||||
if let Some(ref chan) = self.devtools_chan {
|
||||
let page_info = DevtoolsPageInfo {
|
||||
title: title,
|
||||
url: url,
|
||||
|
@ -1669,7 +1667,6 @@ impl ScriptTask {
|
|||
page_info)).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn scroll_fragment_point(&self, pipeline_id: PipelineId, element: &Element) {
|
||||
let rect = element.upcast::<Node>().get_bounding_content_box();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue