Fix formatting.

This commit is contained in:
Josh Matthews 2023-02-16 23:33:24 -05:00
parent 5e5669b945
commit 9ea1399c30
4 changed files with 7 additions and 15 deletions

View file

@ -719,8 +719,7 @@ impl Callback for ConsumeBodyPromiseHandler {
#[allow(unrooted_must_root)]
pub fn consume_body<T: BodyMixin + DomObject>(object: &T, body_type: BodyType) -> Rc<Promise> {
let in_realm_proof = AlreadyInRealm::assert();
let promise =
Promise::new_in_current_realm(InRealm::Already(&in_realm_proof));
let promise = Promise::new_in_current_realm(InRealm::Already(&in_realm_proof));
// Step 1
if object.is_disturbed() || object.is_locked() {