change ServiceFn to use FnMut instead of Fn (#249)
This commit is contained in:
parent
d1c891d1ba
commit
2a3a577929
|
@ -14,7 +14,7 @@ pub struct ServiceFn<T> {
|
|||
|
||||
impl<T, F, Request> Service<Request> for ServiceFn<T>
|
||||
where
|
||||
T: Fn(Request) -> F,
|
||||
T: FnMut(Request) -> F,
|
||||
F: IntoFuture,
|
||||
{
|
||||
type Response = F::Item;
|
||||
|
|
Loading…
Reference in New Issue