diff --git a/components/script/dom/debuggerevent.rs b/components/script/dom/debuggerevent.rs index 6186d4bba40..6c08019fc1f 100644 --- a/components/script/dom/debuggerevent.rs +++ b/components/script/dom/debuggerevent.rs @@ -43,7 +43,7 @@ impl DebuggerEvent { impl DebuggerEventMethods for DebuggerEvent { // check-tidy: no specs after this line - fn Global(&self, r#cx: script_bindings::script_runtime::JSContext) -> NonNull { + fn Global(&self, cx: script_bindings::script_runtime::JSContext) -> NonNull { // Convert the debuggee global’s reflector to a Value, wrapping it from its originating realm (debuggee realm) // into the active realm (debugger realm) so that it can be passed across compartments. rooted!(in(*cx) let mut result: Value); diff --git a/components/script/dom/debuggerglobalscope.rs b/components/script/dom/debuggerglobalscope.rs index ab55fa0f914..33a738a45a8 100644 --- a/components/script/dom/debuggerglobalscope.rs +++ b/components/script/dom/debuggerglobalscope.rs @@ -124,9 +124,9 @@ impl DebuggerGlobalScope { #[allow(unsafe_code)] pub(crate) fn fire_add_debuggee(&self, can_gc: CanGc, global: &GlobalScope) { - let event = DomRoot::upcast::(DebuggerEvent::new(self.upcast(), global, can_gc)); assert_eq!( - event.fire(self.upcast(), can_gc), + DomRoot::upcast::(DebuggerEvent::new(self.upcast(), global, can_gc)) + .fire(self.upcast(), can_gc), EventStatus::NotCanceled, "Guaranteed by DebuggerEvent::new" );