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::();