From d35da38a2fd6f093967e74f704612391b4988e69 Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Sun, 16 Mar 2025 09:46:14 -0400 Subject: Cleanups for future script crate split (#35987) * script: Avoid direct impl blocks on generated dicts and unions. Signed-off-by: Josh Matthews * script: Remove references to codegen-specific import module. Signed-off-by: Josh Matthews * Fix tidy. Signed-off-by: Josh Matthews --------- Signed-off-by: Josh Matthews --- components/script/dom/bindings/function.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'components/script/dom/bindings/function.rs') diff --git a/components/script/dom/bindings/function.rs b/components/script/dom/bindings/function.rs index 86f4903b07d..2419dd05272 100644 --- a/components/script/dom/bindings/function.rs +++ b/components/script/dom/bindings/function.rs @@ -36,7 +36,7 @@ macro_rules! native_raw_obj_fn { #[allow(clippy::macro_metavars_in_unsafe)] unsafe { let name: &std::ffi::CStr = $name; - let raw_fun = $crate::dom::bindings::import::module::jsapi::JS_NewFunction( + let raw_fun = js::jsapi::JS_NewFunction( *$cx, Some(wrapper), $nargs, @@ -44,7 +44,7 @@ macro_rules! native_raw_obj_fn { name.as_ptr() as *const std::ffi::c_char, ); assert!(!raw_fun.is_null()); - $crate::dom::bindings::import::module::jsapi::JS_GetFunctionObject(raw_fun) + js::jsapi::JS_GetFunctionObject(raw_fun) } }}; } -- cgit v1.2.3