From 51f368c5c5be0e519827ec685077c7ff325492df Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Wed, 17 Jul 2024 06:29:40 -0400 Subject: [PATCH] fix: Suspend::new() in router --- router/src/nested_router.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/router/src/nested_router.rs b/router/src/nested_router.rs index 5dc7f9cfd..d76b7bf0a 100644 --- a/router/src/nested_router.rs +++ b/router/src/nested_router.rs @@ -562,7 +562,7 @@ where owner: owner.clone(), matched, view_fn: Arc::new(Mutex::new(Box::new(|| { - Suspend(Box::pin(async { ().into_any() })) + Suspend::new(Box::pin(async { ().into_any() })) }))), base: base.clone(), }; @@ -586,7 +586,7 @@ where *view_fn.lock().or_poisoned() = Box::new(move || { let owner = owner.clone(); let view = view.clone(); - Suspend(Box::pin(async move { + Suspend::new(Box::pin(async move { let view = SendWrapper::new( owner.with(|| ScopedFuture::new(view.choose())), ); @@ -691,7 +691,7 @@ where Box::new(move || { let owner = owner.clone(); let view = view.clone(); - Suspend(Box::pin(async move { + Suspend::new(Box::pin(async move { let view = SendWrapper::new( owner.with(|| { ScopedFuture::new(