mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-07 00:00:12 +02:00
impl IntoResponseParts for () (#2471)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user