mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 22:49:21 +02:00
update actix-web-codegen tests
This commit is contained in:
@ -35,8 +35,8 @@
|
||||
//! use futures::{future, Future};
|
||||
//!
|
||||
//! #[get("/test")]
|
||||
//! fn async_test() -> impl Future<Item=HttpResponse, Error=actix_web::Error> {
|
||||
//! future::ok(HttpResponse::Ok().finish())
|
||||
//! async fn async_test() -> Result<HttpResponse, actix_web::Error> {
|
||||
//! Ok(HttpResponse::Ok().finish())
|
||||
//! }
|
||||
//! ```
|
||||
|
||||
|
Reference in New Issue
Block a user