impl IntoResponseParts for () (#2471)

This commit is contained in:
David Pedersen
2023-12-30 17:47:22 +00:00
committed by GitHub
parent 7ea7e9f618
commit 85573e0573
3 changed files with 12 additions and 2 deletions
@@ -258,3 +258,11 @@ impl IntoResponseParts for Extensions {
Ok(res)
}
}
impl IntoResponseParts for () {
type Error = Infallible;
fn into_response_parts(self, res: ResponseParts) -> Result<ResponseParts, Self::Error> {
Ok(res)
}
}