pass the information on previous caller on clone

This commit is contained in:
niedzwiedzw 2023-07-12 16:24:39 +02:00
parent af091c5bf8
commit 9154b0f8ea

View file

@ -365,7 +365,7 @@ impl<T> Clone for UseSharedState<T> {
Self {
inner: self.inner.clone(),
#[cfg(debug_assertions)]
previous_borrow: Default::default(),
previous_borrow: self.previous_borrow.clone(),
}
}
}