Skip to content

Commit

Permalink
body: impl Default for Body
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Jul 19, 2024
1 parent 208cf1b commit 023f58b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mendes/src/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,12 @@ impl From<Bytes> for Body {
}
}

impl Default for Body {
fn default() -> Self {
Self::empty()
}
}

#[cfg(any(feature = "brotli", feature = "deflate", feature = "gzip"))]
impl EncodeResponse for Response<Body> {
fn encoded(mut self, req: &request::Parts) -> Response<Body> {
Expand Down

0 comments on commit 023f58b

Please sign in to comment.