make data clone
This commit is contained in:
parent
b393221b10
commit
d848b5981b
1 changed files with 6 additions and 0 deletions
|
|
@ -323,6 +323,12 @@ impl<T: Clone> Data<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl<T: Clone> Clone for Data<T> {
|
||||||
|
fn clone(&self) -> Self {
|
||||||
|
self.reset_request_count()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl<T: Clone> Deref for Data<T> {
|
impl<T: Clone> Deref for Data<T> {
|
||||||
type Target = T;
|
type Target = T;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue