diff options
Diffstat (limited to 'components/script/page.rs')
-rw-r--r-- | components/script/page.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/page.rs b/components/script/page.rs index b150804b5d3..23e0f0152dd 100644 --- a/components/script/page.rs +++ b/components/script/page.rs @@ -357,13 +357,13 @@ impl Page { } Ok(_) => {} Err(Disconnected) => { - fail!("Layout task failed while script was waiting for a result."); + panic!("Layout task failed while script was waiting for a result."); } } debug!("script: layout joined") } - None => fail!("reader forked but no join port?"), + None => panic!("reader forked but no join port?"), } } } @@ -393,7 +393,7 @@ impl Page { debug!("avoided {:d} reflows", self.avoided_reflows.get()); self.avoided_reflows.set(0); - debug!("script: performing reflow for goal {:?}", goal); + debug!("script: performing reflow for goal {}", goal); // Now, join the layout so that they will see the latest changes we have made. self.join_layout(); |