mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-22 07:08:16 +01:00
Fix comment in testing example
This commit is contained in:
parent
773bb5db69
commit
9d0e634285
1 changed files with 2 additions and 3 deletions
|
@ -58,12 +58,11 @@ mod tests {
|
||||||
extract::connect_info::MockConnectInfo,
|
extract::connect_info::MockConnectInfo,
|
||||||
http::{self, Request, StatusCode},
|
http::{self, Request, StatusCode},
|
||||||
};
|
};
|
||||||
use http_body_util::BodyExt;
|
use http_body_util::BodyExt; // for `collect`
|
||||||
use serde_json::{json, Value};
|
use serde_json::{json, Value};
|
||||||
use std::net::SocketAddr;
|
use std::net::SocketAddr;
|
||||||
use tokio::net::TcpListener;
|
use tokio::net::TcpListener;
|
||||||
use tower::Service; // for `call`
|
use tower::{Service, ServiceExt}; // for `call`, `oneshot`, and `ready`
|
||||||
use tower::ServiceExt; // for `oneshot` and `ready` // for `collect`
|
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn hello_world() {
|
async fn hello_world() {
|
||||||
|
|
Loading…
Reference in a new issue