fixed impl Clone for PoolRecord and Pool

This commit is contained in:
Dmitry Stepanov
2025-05-16 22:13:04 +03:00
parent 6f5de5ab0b
commit f2a96f3307
+10 -2
View File
@@ -343,7 +343,11 @@ impl<T> Drop for Ticket<T> {
}
}
impl<T: Clone> Clone for PoolRecord<T> {
impl<T, P> Clone for PoolRecord<T, P>
where
T: Clone,
P: PayloadContainer<Element = T> + Clone + 'static,
{
#[inline]
fn clone(&self) -> Self {
Self {
@@ -354,7 +358,11 @@ impl<T: Clone> Clone for PoolRecord<T> {
}
}
impl<T: Clone> Clone for Pool<T> {
impl<T, P> Clone for Pool<T, P>
where
P: PayloadContainer<Element = T> + Clone + 'static,
T: Clone,
{
#[inline]
fn clone(&self) -> Self {
Self {