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) } }