mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
fixup! Use a match rather than a for loop for last_loaded_url in ScriptTask::load.
This commit is contained in:
parent
1d464abb5a
commit
c437bacfc8
1 changed files with 2 additions and 1 deletions
|
@ -920,7 +920,8 @@ impl ScriptTask {
|
||||||
is a bug.");
|
is a bug.");
|
||||||
let page = page_tree.page();
|
let page = page_tree.page();
|
||||||
|
|
||||||
match replace(&mut *page.mut_url(), None) {
|
let last_loaded_url = replace(&mut *page.mut_url(), None);
|
||||||
|
match last_loaded_url {
|
||||||
Some((ref loaded, needs_reflow)) if *loaded == url => {
|
Some((ref loaded, needs_reflow)) if *loaded == url => {
|
||||||
*page.mut_url() = Some((loaded.clone(), false));
|
*page.mut_url() = Some((loaded.clone(), false));
|
||||||
if needs_reflow {
|
if needs_reflow {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue