change ServiceFn to use FnMut instead of Fn (#249)

This commit is contained in:
Sean McArthur 2019-04-10 13:37:00 -07:00 committed by Carl Lerche
parent d1c891d1ba
commit 2a3a577929
1 changed files with 1 additions and 1 deletions

View File

@ -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;