From 279ecfdfb4cea0dc96de2be1a84022084aa11d55 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 15 Nov 2018 10:25:59 +0100 Subject: [PATCH] remove unneeded lifetime annotations --- src/api_server.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/api_server.rs b/src/api_server.rs index 5894096c..ade44dd9 100644 --- a/src/api_server.rs +++ b/src/api_server.rs @@ -97,11 +97,11 @@ macro_rules! http_error_future { }} } -fn get_request_parameters_async<'a>( - info: &'a ApiMethod, +fn get_request_parameters_async( + info: &'static ApiMethod, parts: Parts, req_body: Body, -) -> Box + Send + 'a> +) -> Box + Send> { let resp = req_body .map_err(|err| Error::from(ApiError::new(StatusCode::BAD_REQUEST, format!("Promlems reading request body: {}", err)))) @@ -142,11 +142,11 @@ fn get_request_parameters_async<'a>( Box::new(resp) } -fn handle_sync_api_request<'a>( - info: &'a ApiMethod, +fn handle_sync_api_request( + info: &'static ApiMethod, parts: Parts, req_body: Body, -) -> Box, Error = failure::Error> + Send + 'a> +) -> BoxFut { let params = get_request_parameters_async(info, parts, req_body);