Skip to content

Commit

Permalink
Derive Default for ServeFileSystemResponseBody (tower-rs#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
jplatte authored and gezihuzi committed Jul 19, 2023
1 parent 249f554 commit c485402
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tower-http/src/services/fs/serve_dir/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,7 @@ impl ServeVariant {

opaque_body! {
/// Response body for [`ServeDir`] and [`ServeFile`].
#[derive(Default)]
pub type ResponseBody = UnsyncBoxBody<Bytes, io::Error>;
}

Expand Down

0 comments on commit c485402

Please sign in to comment.