From bef225cc59a49df59a340a947b805e809b008e8a Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Sun, 3 Nov 2024 19:07:21 -0500 Subject: [PATCH] fix: allow `!Send` errors in Actix `extract()` --- integrations/actix/src/lib.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/integrations/actix/src/lib.rs b/integrations/actix/src/lib.rs index 4eae047e4c..c0cb6f8926 100644 --- a/integrations/actix/src/lib.rs +++ b/integrations/actix/src/lib.rs @@ -1579,7 +1579,10 @@ where ServerFnError::new("HttpRequest should have been provided via context") })?; - T::extract(&req) - .await - .map_err(|e| ServerFnError::ServerError(e.to_string())) + SendWrapper::new(async move { + T::extract(&req) + .await + .map_err(|e| ServerFnError::ServerError(e.to_string())) + }) + .await }