mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2024-05-02 17:28:45 +00:00
make data clone
This commit is contained in:
parent
b393221b10
commit
d848b5981b
|
@ -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> {
|
||||
type Target = T;
|
||||
|
||||
|
|
Loading…
Reference in a new issue