aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/interface.rs
diff options
context:
space:
mode:
authorOluwatobi Sofela <60105594+oluwatobiss@users.noreply.github.com>2024-03-27 17:45:58 +0100
committerGitHub <noreply@github.com>2024-03-27 16:45:58 +0000
commitda518823ff639954c3c47940c97a5a9edc3f5391 (patch)
tree60b10d53bf455879bc6fb4f1084c386e59dbe1d3 /components/script/dom/bindings/interface.rs
parent773e88197183fa3fedfd72ef65ba31e4e86b9d12 (diff)
downloadservo-da518823ff639954c3c47940c97a5a9edc3f5391.tar.gz
servo-da518823ff639954c3c47940c97a5a9edc3f5391.zip
clippy: Fix op_ref warnings (#31900)
Diffstat (limited to 'components/script/dom/bindings/interface.rs')
-rw-r--r--components/script/dom/bindings/interface.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/interface.rs b/components/script/dom/bindings/interface.rs
index 1f05de74998..b9d78988d6d 100644
--- a/components/script/dom/bindings/interface.rs
+++ b/components/script/dom/bindings/interface.rs
@@ -638,7 +638,7 @@ pub fn get_desired_proto(
// constructor. CheckedUnwrapStatic is fine here, because we're looking for
// DOM constructors and those can't be cross-origin objects.
*new_target = CheckedUnwrapStatic(*new_target);
- if !new_target.is_null() && &*new_target != &*original_new_target {
+ if !new_target.is_null() && *new_target != *original_new_target {
get_proto_id_for_new_target(new_target.handle())
} else {
None
@@ -649,7 +649,7 @@ pub fn get_desired_proto(
let global = GetNonCCWObjectGlobal(*new_target);
let proto_or_iface_cache = get_proto_or_iface_array(global);
desired_proto.set((*proto_or_iface_cache)[proto_id as usize]);
- if &*new_target != &*original_new_target && !JS_WrapObject(*cx, desired_proto.into()) {
+ if *new_target != *original_new_target && !JS_WrapObject(*cx, desired_proto.into()) {
return Err(());
}
return Ok(());