fix clone bound for relay (#18)

This commit is contained in:
Giacomo Pasini 2023-01-18 11:01:54 +01:00 committed by GitHub
parent 4efc467d84
commit 3ec1156344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -71,6 +71,17 @@ pub struct Relay<S> {
_bound: PhantomBound<S>,
}
impl<T> Clone for Relay<T> {
fn clone(&self) -> Self {
Self {
overwatch_handle: self.overwatch_handle.clone(),
_bound: PhantomBound {
_inner: PhantomData,
},
}
}
}
// Like PhantomData<T> but without
// ownership of T
#[derive(Debug)]