diff options
author | Josh Matthews <josh@joshmatthews.net> | 2023-02-16 23:29:49 -0500 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2023-05-20 11:05:09 -0400 |
commit | 5e5669b9457df0f94c4d64a8f29a8c5ac4a271c8 (patch) | |
tree | 43c93febc8ccacdec75d2805527b5f4d47d6bdb2 /components/script/body.rs | |
parent | fca5833e216318c45caabe147ee724cff2daae1c (diff) | |
download | servo-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.rs | 3 |
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)); |