From 84c942111e52841600cd64d0dde4f780b5abbc05 Mon Sep 17 00:00:00 2001 From: Dominic Date: Tue, 21 Apr 2020 21:36:05 +0200 Subject: [PATCH] Raw should be always acceptable and therefore not declare any accepted types --- gotham_restful/src/result.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/gotham_restful/src/result.rs b/gotham_restful/src/result.rs index 55f4c3c..f7d4e42 100644 --- a/gotham_restful/src/result.rs +++ b/gotham_restful/src/result.rs @@ -464,11 +464,6 @@ impl> ResourceResult for Raw Ok(Response::new(StatusCode::OK, self.raw, Some(self.mime.clone()))) } - fn accepted_types() -> Option> - { - Some(vec![STAR_STAR]) - } - #[cfg(feature = "openapi")] fn schema() -> OpenapiSchema {