clippy: Fix some clippy warnings in components/script (#31843)

* deref on an immutable reference

* fix deref on an immutable reference

* fix deref on an immutable reference
This commit is contained in:
Rosemary Ajayi 2024-03-25 12:57:35 +00:00 committed by GitHub
parent 97144ddf71
commit 3d10dbae32
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View file

@ -92,7 +92,7 @@ impl WorkletGlobalScope {
debug!("Evaluating Dom in a worklet.");
rooted!(in (*GlobalScope::get_cx()) let mut rval = UndefinedValue());
self.globalscope.evaluate_js_on_global_with_result(
&*script,
script,
rval.handle_mut(),
ScriptFetchOptions::default_classic_script(&self.globalscope),
self.globalscope.api_base_url(),