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:
parent
681ef5d894
commit
f2bcc8438f
4 changed files with 27 additions and 11 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue