mirror of
https://github.com/fafhrd91/actix-net
synced 2025-08-30 23:30:19 +02:00
add clone impls for combinator services
This commit is contained in:
@@ -25,6 +25,20 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
impl<A, F, E> Clone for MapErr<A, F, E>
|
||||
where
|
||||
A: Service + Clone,
|
||||
F: Fn(A::Error) -> E + Clone,
|
||||
{
|
||||
fn clone(&self) -> Self {
|
||||
MapErr {
|
||||
a: self.a.clone(),
|
||||
f: self.f.clone(),
|
||||
e: marker::PhantomData,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl<A, F, E> Service for MapErr<A, F, E>
|
||||
where
|
||||
A: Service,
|
||||
|
Reference in New Issue
Block a user