From 7e518b147026a31d1dadbea514b37c82bd2f25b4 Mon Sep 17 00:00:00 2001 From: Omar Zabala-Ferrera <73452461+ozabalaferrera@users.noreply.github.com> Date: Sun, 18 Aug 2024 19:57:57 -0400 Subject: [PATCH] Ran formatting. Signed-off-by: Omar Zabala-Ferrera <73452461+ozabalaferrera@users.noreply.github.com> --- src/binding/http_0_2/builder/adapter.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/binding/http_0_2/builder/adapter.rs b/src/binding/http_0_2/builder/adapter.rs index d7eeb7b..da12a6f 100644 --- a/src/binding/http_0_2/builder/adapter.rs +++ b/src/binding/http_0_2/builder/adapter.rs @@ -22,11 +22,12 @@ impl Builder> for Adapter { self.builder.set(self.builder.take().header(key, value)); } fn body(&mut self, bytes: Vec) -> Result> { - self.builder.take().body(Body::from(bytes)).map_err(|e| { - crate::message::Error::Other { + self.builder + .take() + .body(Body::from(bytes)) + .map_err(|e| crate::message::Error::Other { source: Box::new(e), - } - }) + }) } fn finish(&mut self) -> Result> { self.body(Vec::new())