mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-19 12:25:37 +02:00
.to_async() handler can return Responder type #792
This commit is contained in:
@@ -217,7 +217,7 @@ where
|
||||
F: AsyncFactory<I, R>,
|
||||
I: FromRequest + 'static,
|
||||
R: IntoFuture + 'static,
|
||||
R::Item: Into<Response>,
|
||||
R::Item: Responder,
|
||||
R::Error: Into<Error>,
|
||||
{
|
||||
self.routes.push(Route::new().to_async(handler));
|
||||
|
Reference in New Issue
Block a user