rip out more lifetimes

This commit is contained in:
Evan Almloff committed 2024-01-04 18:33:01 -06:00
1 parent c9ff449e45
commit 3ad16ddd37
18 files changed
+165 -456

No files matched your search

+3 -3
View File
@@ -11,9 +11,9 @@ use std::panic::AssertUnwindSafe;
/// # Safety
///
/// This should not be implemented outside this module
pub(crate) unsafe trait AnyProps<'a> {
pub(crate) unsafe trait AnyProps {
fn props_ptr(&self) -> *const ();
fn render(&'a self, bump: &'a ScopeState) -> RenderReturn<'a>;
fn render<'a>(&'a self, bump: &'a ScopeState) -> RenderReturn<'a>;
unsafe fn memoize(&self, other: &dyn AnyProps) -> bool;
}
@@ -37,7 +37,7 @@ impl<'a, P> VProps<'a, P> {
}
}
unsafe impl<'a, P> AnyProps<'a> for VProps<'a, P> {
unsafe impl<'a, P> AnyProps for VProps<'a, P> {
fn props_ptr(&self) -> *const () {
&self.props as *const _ as *const ()
}