wip: no more lifetimes

This commit is contained in:
Jonathan Kelley committed 2021-11-06 21:07:01 -04:00
1 parent 857c92f7f0
commit d96276a715
6 files changed
+38 -25

No files matched your search

+2 -2
View File
@@ -95,11 +95,11 @@ pub fn use_suspense<'src, Out, Fut, Cb>(
cx: Context<'src>,
task_initializer: impl FnOnce() -> Fut,
user_callback: Cb,
) -> Element<'src>
) -> Element
where
Fut: Future<Output = Out>,
Out: 'static,
Cb: FnMut(&Out) -> Element<'src> + 'src,
Cb: FnMut(&Out) -> Element + 'src,
{
/*
General strategy: