1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-05-09 08:00:41 +00:00

fix implicit &'static mut State error

This commit is contained in:
Dominic 2021-01-18 19:04:06 +01:00
parent 681ef5d894
commit f2bcc8438f
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
4 changed files with 27 additions and 11 deletions

View file

@ -554,12 +554,12 @@ fn expand_endpoint_type(mut ty: EndpointType, attrs: AttributeArgs, fun: &ItemFn
}
type Body = #body_ty;
fn handle(
state: &mut ::gotham_restful::gotham::state::State,
fn handle<'a>(
state: &'a mut ::gotham_restful::gotham::state::State,
placeholders: Self::Placeholders,
params: Self::Params,
body: ::std::option::Option<Self::Body>
) -> ::gotham_restful::export::BoxFuture<'static, Self::Output> {
) -> ::gotham_restful::export::BoxFuture<'a, Self::Output> {
#handle_content
}