1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-12-21 23:56:35 +00:00

add Clone impl for FromErr combinator

This commit is contained in:
Nikolay Kim 2018-09-05 19:27:52 -07:00
parent 983223a839
commit 0525da70bf

View file

@ -20,6 +20,19 @@ impl<A: Service, E: From<A::Error>> FromErr<A, E> {
}
}
impl<A, E> Clone for FromErr<A, E>
where
A: Service + Clone,
E: From<A::Error>,
{
fn clone(&self) -> Self {
FromErr {
service: self.service.clone(),
f: PhantomData,
}
}
}
impl<A, E> Service for FromErr<A, E>
where
A: Service,