Add clone implementation.
This commit is contained in:
parent
96bdc0cfe2
commit
6aa8f4ac88
@ -241,3 +241,8 @@ impl<T: 'static + Clone + Send> Bus<T> {
|
||||
self.id
|
||||
}
|
||||
}
|
||||
impl<T: 'static + Clone + Send> Clone for Bus<T> {
|
||||
fn clone(&self) -> Self {
|
||||
self.connect().unwrap()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user