From 9d0e634285bbdf6e1910df8a9c01676cf82a0ec1 Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Mon, 27 Nov 2023 10:58:03 +0100 Subject: [PATCH] Fix comment in testing example --- examples/testing/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/testing/src/main.rs b/examples/testing/src/main.rs index efca8d4e..2879b69a 100644 --- a/examples/testing/src/main.rs +++ b/examples/testing/src/main.rs @@ -58,12 +58,11 @@ mod tests { extract::connect_info::MockConnectInfo, http::{self, Request, StatusCode}, }; - use http_body_util::BodyExt; + use http_body_util::BodyExt; // for `collect` use serde_json::{json, Value}; use std::net::SocketAddr; use tokio::net::TcpListener; - use tower::Service; // for `call` - use tower::ServiceExt; // for `oneshot` and `ready` // for `collect` + use tower::{Service, ServiceExt}; // for `call`, `oneshot`, and `ready` #[tokio::test] async fn hello_world() {