mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
ran ./mach fmt
- removed unused import in document_loader.rs - limit unsafe block in mark_document_with_no_blocked_loads in script_thread.rs - changed name of if let value to load in Drop for LoadBlocker in document_loader.rs
This commit is contained in:
parent
c713febe7a
commit
be82d7c905
2 changed files with 5 additions and 6 deletions
|
@ -14,7 +14,6 @@ use net_traits::request::RequestInit;
|
|||
use net_traits::{CoreResourceMsg, FetchChannels, FetchResponseMsg};
|
||||
use net_traits::{IpcSend, ResourceThreads};
|
||||
use servo_url::ServoUrl;
|
||||
use std::thread;
|
||||
|
||||
#[derive(Clone, Debug, JSTraceable, MallocSizeOf, PartialEq)]
|
||||
pub enum LoadType {
|
||||
|
@ -77,8 +76,8 @@ impl LoadBlocker {
|
|||
|
||||
impl Drop for LoadBlocker {
|
||||
fn drop(&mut self) {
|
||||
if let Some(script_thread) = self.load.take() {
|
||||
self.doc.finish_load(script_thread);
|
||||
if let Some(load) = self.load.take() {
|
||||
self.doc.finish_load(load);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue