From 894d5159e56861f8f9f34aad1a35101c7ae595b9 Mon Sep 17 00:00:00 2001 From: Martin Berg Alstad Date: Tue, 1 Jul 2025 18:50:03 +0200 Subject: [PATCH] Fix lint error --- src/axum/response.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/axum/response.rs b/src/axum/response.rs index 39114c6..0c6814b 100644 --- a/src/axum/response.rs +++ b/src/axum/response.rs @@ -19,9 +19,9 @@ impl IntoResponse for BaseResponse { impl DeserializeInto for Response { async fn deserialize_into(self) -> Result { - let body = to_bytes(self.into_body(), usize::MAX).await.map_err(|e| { - serde_json::Error::custom(format!("Failed to read response body: {}", e)) - })?; + let body = to_bytes(self.into_body(), usize::MAX) + .await + .map_err(|e| serde_json::Error::custom(format!("Failed to read response body: {e}")))?; serde_json::from_slice(&body) } }