From 7418be8d0f45cab3e78e6729ed438314130cb89d Mon Sep 17 00:00:00 2001 From: Emile Fugulin Date: Sat, 23 Nov 2024 20:40:53 -0500 Subject: [PATCH] Implement JsLifetime for () --- core/src/js_lifetime.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/js_lifetime.rs b/core/src/js_lifetime.rs index 3cf862a3..9081a5a9 100644 --- a/core/src/js_lifetime.rs +++ b/core/src/js_lifetime.rs @@ -178,3 +178,7 @@ impl_outlive!( unsafe impl<'js, T: JsLifetime<'js>> JsLifetime<'js> for Module<'js, T> { type Changed<'to> = Module<'to, T::Changed<'to>>; } + +unsafe impl<'js> JsLifetime<'js> for () { + type Changed<'to> = (); +}