1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-28 01:52:57 +01:00

Update call_service documentation (#1302)

Co-authored-by: Christian Battaglia <christian.d.battaglia@gmail.com>
This commit is contained in:
Yuki Okushi 2020-01-28 08:09:46 +09:00 committed by GitHub
parent 71d11644a7
commit a2d4ff157e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,11 +95,10 @@ where
/// Calls service and waits for response future completion. /// Calls service and waits for response future completion.
/// ///
/// ```rust /// ```rust
/// use actix_web::{test, App, HttpResponse, http::StatusCode}; /// use actix_web::{test, web, App, HttpResponse, http::StatusCode};
/// use actix_service::Service;
/// ///
/// #[test] /// #[actix_rt::test]
/// fn test_response() { /// async fn test_response() {
/// let mut app = test::init_service( /// let mut app = test::init_service(
/// App::new() /// App::new()
/// .service(web::resource("/test").to(|| async { /// .service(web::resource("/test").to(|| async {