1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-02-23 13:02:28 +00:00

Raw<T> should be always acceptable and therefore not declare any accepted types

This commit is contained in:
Dominic 2020-04-21 21:36:05 +02:00
parent 659fd2f7e2
commit 84c942111e
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -464,11 +464,6 @@ impl<T : Into<Body>> ResourceResult for Raw<T>
Ok(Response::new(StatusCode::OK, self.raw, Some(self.mime.clone()))) Ok(Response::new(StatusCode::OK, self.raw, Some(self.mime.clone())))
} }
fn accepted_types() -> Option<Vec<Mime>>
{
Some(vec![STAR_STAR])
}
#[cfg(feature = "openapi")] #[cfg(feature = "openapi")]
fn schema() -> OpenapiSchema fn schema() -> OpenapiSchema
{ {