@@ -71,7 +71,7 @@ use types::Diagnostic;
71
71
pub ( crate ) type Error = Box < dyn std:: error:: Error + Send + Sync + ' static > ;
72
72
73
73
/// Configuration derived from environment variables.
74
- #[ derive( Debug , Default , Clone , PartialEq ) ]
74
+ #[ derive( Debug , Default , Clone , PartialEq , Serialize ) ]
75
75
pub struct Config {
76
76
/// The host and port of the [runtime API](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html).
77
77
pub endpoint : String ,
@@ -130,7 +130,7 @@ pub struct HandlerFn<F> {
130
130
impl < F , A , B , Error , Fut > Handler < A , B > for HandlerFn < F >
131
131
where
132
132
F : Fn ( A , Context ) -> Fut ,
133
- Fut : Future < Output = Result < B , Error > > + Send + Sync ,
133
+ Fut : Future < Output = Result < B , Error > > + Send ,
134
134
Error : Into < Box < dyn std:: error:: Error + Send + Sync + ' static > > + fmt:: Display ,
135
135
{
136
136
type Error = Error ;
@@ -173,7 +173,7 @@ where
173
173
) -> Result < ( ) , Error >
174
174
where
175
175
F : Handler < A , B > + Send + Sync + ' static ,
176
- <F as Handler < A , B > >:: Fut : Future < Output = Result < B , <F as Handler < A , B > >:: Error > > + Send + Sync + ' static ,
176
+ <F as Handler < A , B > >:: Fut : Future < Output = Result < B , <F as Handler < A , B > >:: Error > > + Send + ' static ,
177
177
<F as Handler < A , B > >:: Error : fmt:: Display + Send + Sync + ' static ,
178
178
A : for < ' de > Deserialize < ' de > + Send + Sync + ' static ,
179
179
B : Serialize + Send + Sync + ' static ,
@@ -328,7 +328,7 @@ where
328
328
pub async fn run < A , B , F > ( handler : F ) -> Result < ( ) , Error >
329
329
where
330
330
F : Handler < A , B > + Send + Sync + ' static ,
331
- <F as Handler < A , B > >:: Fut : Future < Output = Result < B , <F as Handler < A , B > >:: Error > > + Send + Sync + ' static ,
331
+ <F as Handler < A , B > >:: Fut : Future < Output = Result < B , <F as Handler < A , B > >:: Error > > + Send + ' static ,
332
332
<F as Handler < A , B > >:: Error : fmt:: Display + Send + Sync + ' static ,
333
333
A : for < ' de > Deserialize < ' de > + Send + Sync + ' static ,
334
334
B : Serialize + Send + Sync + ' static ,
0 commit comments