Skip to content

Commit

Permalink
Merge pull request #395 from caido/ef-lifetime-empty
Browse files Browse the repository at this point in the history
Implement JsLifetime for ()
  • Loading branch information
DelSkayn authored Nov 25, 2024
2 parents ec52f5c + 7418be8 commit 6d8f612
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/js_lifetime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> = ();
}

0 comments on commit 6d8f612

Please sign in to comment.