From 7ee2a629442e510894eef2d58299a18501b6b6ed Mon Sep 17 00:00:00 2001 From: Rachit2323 Date: Sun, 3 May 2026 16:54:35 +0530 Subject: [PATCH] style: apply rustfmt formatting to test --- actix-web/tests/test_server.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/actix-web/tests/test_server.rs b/actix-web/tests/test_server.rs index a710930f3..eb6702b83 100644 --- a/actix-web/tests/test_server.rs +++ b/actix-web/tests/test_server.rs @@ -415,8 +415,9 @@ async fn test_compress_streaming_flushes_chunks() { use futures_util::StreamExt as _; let srv = actix_test::start_with(actix_test::config().h1(), || { - App::new().wrap(Compress::default()).service( - web::resource("/").route(web::get().to(|| async { + App::new() + .wrap(Compress::default()) + .service(web::resource("/").route(web::get().to(|| async { // Two-chunk stream: first chunk arrives immediately, second after 500ms. // Without the flush fix both chunks arrive together after 500ms. let s = futures_util::stream::once(async { @@ -427,8 +428,7 @@ async fn test_compress_streaming_flushes_chunks() { Ok::<_, std::io::Error>(Bytes::from(" world")) })); HttpResponse::Ok().streaming(s) - })), - ) + }))) }); let mut res = srv