diff options
author | elias <elias.jm.garcia@gmail.com> | 2019-03-13 11:39:14 -0500 |
---|---|---|
committer | elias <elias.jm.garcia@gmail.com> | 2019-03-14 14:10:29 -0500 |
commit | be82d7c9058cd22c54b01a4b6aa0858307364f6c (patch) | |
tree | f1b5a25dff8b2b16d3070d6f8e26aa3a3877259c /components/script/script_thread.rs | |
parent | c713febe7a43695e5e43762c188f5baf62282687 (diff) | |
download | servo-be82d7c9058cd22c54b01a4b6aa0858307364f6c.tar.gz servo-be82d7c9058cd22c54b01a4b6aa0858307364f6c.zip |
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
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index b3bd5b1c396..41a7192e70a 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -809,13 +809,13 @@ impl ScriptThread { pub fn mark_document_with_no_blocked_loads(doc: &Document) { SCRIPT_THREAD_ROOT.with(|root| { - unsafe { if let Some(script_thread) = root.get() { - (*script_thread) + let script_thread = unsafe { &*script_thread }; + script_thread .docs_with_no_blocking_loads .borrow_mut() .insert(Dom::from_ref(doc)); - }} + } }) } |