aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/utils.rs
diff options
context:
space:
mode:
authoryvt <i@yvt.jp>2021-07-12 01:13:16 +0900
committeryvt <i@yvt.jp>2021-07-12 01:29:41 +0900
commite7866271990aa21b4d829e0991e881cd85383e06 (patch)
tree3cc351c6b9eb1e81c570a29f25b1717d00bf1148 /components/script/dom/bindings/utils.rs
parent2f3a14b491d9af99f9ab24484c266dd947cd6094 (diff)
downloadservo-e7866271990aa21b4d829e0991e881cd85383e06.tar.gz
servo-e7866271990aa21b4d829e0991e881cd85383e06.zip
fix(script): apply some of the changes requested in the review comments of #16501
Diffstat (limited to 'components/script/dom/bindings/utils.rs')
-rw-r--r--components/script/dom/bindings/utils.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs
index 114422f61b1..b7ae7a1392e 100644
--- a/components/script/dom/bindings/utils.rs
+++ b/components/script/dom/bindings/utils.rs
@@ -98,8 +98,8 @@ unsafe extern "C" fn principals_is_system_or_addon_principal(_: *mut JSPrincipal
//TODO is same_origin_domain equivalent to subsumes for our purposes
pub unsafe extern "C" fn subsumes(obj: *mut JSPrincipals, other: *mut JSPrincipals) -> bool {
- let obj = &ServoJSPrincipal(obj);
- let other = &ServoJSPrincipal(other);
+ let obj = ServoJSPrincipal(obj);
+ let other = ServoJSPrincipal(other);
let obj_origin = obj.origin();
let other_origin = other.origin();
obj_origin.same_origin_domain(&other_origin)