From 6309e7043c400966e41061c46c6e0d66a223d6aa Mon Sep 17 00:00:00 2001 From: David Pedersen Date: Sat, 12 Mar 2022 22:23:52 +0100 Subject: [PATCH] wip --- axum-openapi/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/axum-openapi/src/lib.rs b/axum-openapi/src/lib.rs index ce14c277..1a4b4655 100644 --- a/axum-openapi/src/lib.rs +++ b/axum-openapi/src/lib.rs @@ -31,7 +31,7 @@ where } } - pub fn get(mut self, path: &str, mut handler: H) -> Self + pub fn get(mut self, path: &str, handler: H) -> Self where H: OpenApiHandler, T: 'static, @@ -43,7 +43,7 @@ where self } - pub fn post(mut self, path: &str, mut handler: H) -> Self + pub fn post(mut self, path: &str, handler: H) -> Self where H: OpenApiHandler, T: 'static, @@ -71,8 +71,6 @@ pub trait OpenApiHandler: Handler { } } -pub type SetOperationField = MapOperation>; - pub struct MapOperation { handler: H, f: F,