diff --git a/components/script/body.rs b/components/script/body.rs index 2d8bdc0687e..8ac94d09a1e 100644 --- a/components/script/body.rs +++ b/components/script/body.rs @@ -719,8 +719,7 @@ impl Callback for ConsumeBodyPromiseHandler { #[allow(unrooted_must_root)] pub fn consume_body(object: &T, body_type: BodyType) -> Rc { 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() { diff --git a/components/script/dom/console.rs b/components/script/dom/console.rs index b9b6f2aded0..329e4c93c50 100644 --- a/components/script/dom/console.rs +++ b/components/script/dom/console.rs @@ -17,7 +17,8 @@ impl Console { #[allow(unsafe_code)] fn send_to_devtools(global: &GlobalScope, level: LogLevel, message: DOMString) { if let Some(chan) = global.devtools_chan() { - let caller = unsafe { describe_scripted_caller(*GlobalScope::get_cx()) }.unwrap_or_default(); + let caller = + unsafe { describe_scripted_caller(*GlobalScope::get_cx()) }.unwrap_or_default(); let console_message = ConsoleMessage { message: String::from(message), logLevel: level, diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index ff9203118fb..cb2d43dd62c 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -3574,8 +3574,7 @@ impl Document { pub fn enter_fullscreen(&self, pending: &Element) -> Rc { // Step 1 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)); let mut error = false; // Step 4 diff --git a/components/script/script_module.rs b/components/script/script_module.rs index 7dc5c13ab99..9ba8dd523a0 100644 --- a/components/script/script_module.rs +++ b/components/script/script_module.rs @@ -424,8 +424,7 @@ impl ModuleTree { let cx = GlobalScope::get_cx(); let _ac = JSAutoRealm::new(*cx, *global.reflector().get_jsobject()); - let compile_options = - unsafe { CompileOptionsWrapper::new(*cx, url.as_str(), 1) }; + let compile_options = unsafe { CompileOptionsWrapper::new(*cx, url.as_str(), 1) }; unsafe { rooted!(in(*cx) let mut module_script = CompileModule1( @@ -438,10 +437,7 @@ impl ModuleTree { warn!("fail to compile module script of {}", url); rooted!(in(*cx) let mut exception = UndefinedValue()); - assert!(JS_GetPendingException( - *cx, - &mut exception.handle_mut() - )); + assert!(JS_GetPendingException(*cx, &mut exception.handle_mut())); JS_ClearPendingException(*cx); return Err(RethrowError(RootedTraceableBox::from_box(Heap::boxed( @@ -483,10 +479,7 @@ impl ModuleTree { warn!("fail to link & instantiate module"); rooted!(in(*cx) let mut exception = UndefinedValue()); - assert!(JS_GetPendingException( - *cx, - &mut exception.handle_mut() - )); + assert!(JS_GetPendingException(*cx, &mut exception.handle_mut())); JS_ClearPendingException(*cx); Err(RethrowError(RootedTraceableBox::from_box(Heap::boxed(