Skip to content

Commit

Permalink
impl OpenApiResponder for rocket::Status
Browse files Browse the repository at this point in the history
  • Loading branch information
l4l committed Apr 8, 2020
1 parent 9807408 commit 9206ab2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rocket-okapi/src/response/responder_impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ impl<'r, T: OpenApiResponder<'r>> OpenApiResponder<'r> for Option<T> {
}
}

impl OpenApiResponder<'_> for rocket::http::Status {
fn responses(_: &mut OpenApiGenerator) -> Result {
Ok(Responses::default())
}
}

macro_rules! status_responder {
($responder: ident, $status: literal) => {
impl<'r, T: OpenApiResponder<'r>> OpenApiResponder<'r>
Expand Down

0 comments on commit 9206ab2

Please sign in to comment.