mirror of
https://github.com/fafhrd91/actix-net
synced 2025-01-18 20:01:48 +01:00
add Clone impl for FromErr combinator
This commit is contained in:
parent
983223a839
commit
0525da70bf
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user