From c990521b923f855fd38f0d3c2110864751d96c50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Frosteg=C3=A5rd?= Date: Mon, 4 Apr 2022 12:49:35 +0200 Subject: [PATCH] Run cargo fmt --- aquatic_http_protocol/src/response.rs | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/aquatic_http_protocol/src/response.rs b/aquatic_http_protocol/src/response.rs index d11c448..b770658 100644 --- a/aquatic_http_protocol/src/response.rs +++ b/aquatic_http_protocol/src/response.rs @@ -124,11 +124,7 @@ impl axum::response::IntoResponse for AnnounceResponse { self.write(&mut response_bytes).unwrap(); - ( - [("Content-type", "text/plain")], - response_bytes, - ) - .into_response() + ([("Content-type", "text/plain")], response_bytes).into_response() } } @@ -169,11 +165,7 @@ impl axum::response::IntoResponse for ScrapeResponse { self.write(&mut response_bytes).unwrap(); - ( - [("Content-type", "text/plain")], - response_bytes, - ) - .into_response() + ([("Content-type", "text/plain")], response_bytes).into_response() } } @@ -212,11 +204,7 @@ impl axum::response::IntoResponse for FailureResponse { self.write(&mut response_bytes).unwrap(); - ( - [("Content-type", "text/plain")], - response_bytes, - ) - .into_response() + ([("Content-type", "text/plain")], response_bytes).into_response() } }