aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_module.rs
diff options
context:
space:
mode:
authorOluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com>2024-03-20 09:07:22 +0100
committerGitHub <noreply@github.com>2024-03-20 08:07:22 +0000
commit02a0cdd6faf80b77c6b066120bc2927c963affe3 (patch)
treeabb409671c554c5c4d9678788388d51f6341688d /components/script/script_module.rs
parent0cf2caba06a78fe3695c46b468422e975f0bd187 (diff)
downloadservo-02a0cdd6faf80b77c6b066120bc2927c963affe3.tar.gz
servo-02a0cdd6faf80b77c6b066120bc2927c963affe3.zip
clippy: Fix dereferenced warnings (#31770)
Diffstat (limited to 'components/script/script_module.rs')
-rw-r--r--components/script/script_module.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_module.rs b/components/script/script_module.rs
index 9be741082c9..d6fe61e9653 100644
--- a/components/script/script_module.rs
+++ b/components/script/script_module.rs
@@ -79,7 +79,7 @@ use crate::task_source::TaskSourceName;
#[allow(unsafe_code)]
unsafe fn gen_type_error(global: &GlobalScope, string: String) -> RethrowError {
rooted!(in(*GlobalScope::get_cx()) let mut thrown = UndefinedValue());
- Error::Type(string).to_jsval(*GlobalScope::get_cx(), &global, thrown.handle_mut());
+ Error::Type(string).to_jsval(*GlobalScope::get_cx(), global, thrown.handle_mut());
return RethrowError(RootedTraceableBox::from_box(Heap::boxed(thrown.get())));
}
@@ -329,7 +329,7 @@ impl ModuleTree {
let module_map = global.get_module_map().borrow();
let mut discovered_urls = HashSet::new();
- ModuleTree::recursive_check_descendants(&self, &module_map.0, &mut discovered_urls)
+ ModuleTree::recursive_check_descendants(self, &module_map.0, &mut discovered_urls)
}
// We just leverage the power of Promise to run the task for `finish` the owner.