From 06e6c93a46666a1674870a17498d5ced369ebc3f Mon Sep 17 00:00:00 2001 From: Dominic Date: Tue, 14 Apr 2020 22:41:20 +0200 Subject: [PATCH] fix openapi routing errors --- gotham_restful/src/openapi/router.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gotham_restful/src/openapi/router.rs b/gotham_restful/src/openapi/router.rs index 2bf93ef..e2113d5 100644 --- a/gotham_restful/src/openapi/router.rs +++ b/gotham_restful/src/openapi/router.rs @@ -418,6 +418,9 @@ macro_rules! implOpenapiRouter { } fn create(&mut self) + where + Handler::Res : Send + 'static, + Handler::Body : 'static { let schema = (self.0).1.add_schema::(); let body_schema = (self.0).1.add_schema::(); @@ -431,6 +434,9 @@ macro_rules! implOpenapiRouter { } fn update_all(&mut self) + where + Handler::Res : Send + 'static, + Handler::Body : 'static { let schema = (self.0).1.add_schema::(); let body_schema = (self.0).1.add_schema::(); @@ -444,6 +450,9 @@ macro_rules! implOpenapiRouter { } fn update(&mut self) + where + Handler::Res : Send + 'static, + Handler::Body : 'static { let schema = (self.0).1.add_schema::(); let body_schema = (self.0).1.add_schema::();