aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/body.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2023-02-16 23:29:49 -0500
committerJosh Matthews <josh@joshmatthews.net>2023-05-20 11:05:09 -0400
commit5e5669b9457df0f94c4d64a8f29a8c5ac4a271c8 (patch)
tree43c93febc8ccacdec75d2805527b5f4d47d6bdb2 /components/script/body.rs
parentfca5833e216318c45caabe147ee724cff2daae1c (diff)
downloadservo-5e5669b9457df0f94c4d64a8f29a8c5ac4a271c8.tar.gz
servo-5e5669b9457df0f94c4d64a8f29a8c5ac4a271c8.zip
Remove unused argument from AlreadyInRealm::assert.
Diffstat (limited to 'components/script/body.rs')
-rw-r--r--components/script/body.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/body.rs b/components/script/body.rs
index 4a028084bb8..2d8bdc0687e 100644
--- a/components/script/body.rs
+++ b/components/script/body.rs
@@ -718,8 +718,7 @@ impl Callback for ConsumeBodyPromiseHandler {
// https://fetch.spec.whatwg.org/#concept-body-consume-body
#[allow(unrooted_must_root)]
pub fn consume_body<T: BodyMixin + DomObject>(object: &T, body_type: BodyType) -> Rc<Promise> {
- let global = object.global();
- let in_realm_proof = AlreadyInRealm::assert(&global);
+ let in_realm_proof = AlreadyInRealm::assert();
let promise =
Promise::new_in_current_realm(InRealm::Already(&in_realm_proof));