Skip to content

Commit

Permalink
Ran formatting.
Browse files Browse the repository at this point in the history
Signed-off-by: Omar Zabala-Ferrera <73452461+ozabalaferrera@users.noreply.github.com>
  • Loading branch information
ozabalaferrera committed Aug 18, 2024
1 parent 09d160c commit 7e518b1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/binding/http_0_2/builder/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ impl Builder<Response<Body>> for Adapter {
self.builder.set(self.builder.take().header(key, value));
}
fn body(&mut self, bytes: Vec<u8>) -> Result<Response<Body>> {
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<Response<Body>> {
self.body(Vec::new())
Expand Down

0 comments on commit 7e518b1

Please sign in to comment.