Skip to content

Commit

Permalink
removed the accidental 'static bound on ScopedFuture
Browse files Browse the repository at this point in the history
  • Loading branch information
jquesada2016 committed Sep 20, 2023
1 parent d67f0e3 commit e1d0a9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion leptos_reactive/src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ pub fn untrack_with_diagnostics<T>(f: impl FnOnce() -> T) -> T {

/// Allows running a future that has access to a given scope.
#[pin_project]
pub struct ScopedFuture<Fut: Future + 'static> {
pub struct ScopedFuture<Fut: Future> {
owner: Owner,
#[pin]
future: Fut,
Expand Down Expand Up @@ -1521,3 +1521,5 @@ impl<Fut: Future + 'static> Future for ScopedFuture<Fut> {
}
}
}

impl<Fut: Future> ScopedFuture<Fut> {}

0 comments on commit e1d0a9e

Please sign in to comment.