@@ -3,10 +3,10 @@ use std::{error::Error, result};
33use serde;
44use serde_json;
55
6- use lambda_runtime_client:: RuntimeClient ;
76use context:: Context ;
87use env:: { ConfigProvider , EnvConfigProvider , FunctionSettings } ;
98use error:: { HandlerError , RuntimeError } ;
9+ use lambda_runtime_client:: RuntimeClient ;
1010use tokio:: runtime:: Runtime as TokioRuntime ;
1111
1212const MAX_RETRIES : i8 = 3 ;
@@ -53,11 +53,8 @@ macro_rules! lambda {
5353/// The function panics if the `ConfigProvider` returns an error from the `get_runtime_api_endpoint()`
5454/// or `get_function_settings()` methods. The panic forces AWS Lambda to terminate the environment
5555/// and spin up a new one for the next invocation.
56- pub ( crate ) fn start_with_config < E , O , C > (
57- f : Handler < E , O > ,
58- config : C ,
59- runtime : Option < TokioRuntime > ,
60- ) where
56+ pub ( crate ) fn start_with_config < E , O , C > ( f : Handler < E , O > , config : C , runtime : Option < TokioRuntime > )
57+ where
6158 for < ' invocation > E : serde:: Deserialize < ' invocation > ,
6259 O : serde:: Serialize ,
6360 C : ConfigProvider ,
@@ -103,11 +100,8 @@ pub(crate) fn start_with_config<E, O, C>(
103100///
104101/// # Panics
105102/// The function panics if we cannot instantiate a new `RustRuntime` object.
106- pub ( crate ) fn start_with_runtime_client < E , O > (
107- f : Handler < E , O > ,
108- func_settings : FunctionSettings ,
109- client : RuntimeClient ,
110- ) where
103+ pub ( crate ) fn start_with_runtime_client < E , O > ( f : Handler < E , O > , func_settings : FunctionSettings , client : RuntimeClient )
104+ where
111105 for < ' invocation > E : serde:: Deserialize < ' invocation > ,
112106 O : serde:: Serialize ,
113107{
0 commit comments