Skip to content

Commit 0a8cd49

Browse files
committed
f remove unnecessary clone from trait bounds
1 parent 4110176 commit 0a8cd49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/util/persist.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ where
350350
/// If you have many stale updates stored (such as after a crash with pending lazy deletes), and
351351
/// would like to get rid of them, consider using the
352352
/// [`MonitorUpdatingPersister::cleanup_stale_updates`] function.
353-
pub struct MonitorUpdatingPersister<K: Deref, L: Deref, ES: Deref + Clone, SP: Deref + Clone>
353+
pub struct MonitorUpdatingPersister<K: Deref, L: Deref, ES: Deref, SP: Deref>
354354
where
355355
K::Target: KVStore,
356356
L::Target: Logger,
@@ -365,7 +365,7 @@ where
365365
}
366366

367367
#[allow(dead_code)]
368-
impl<K: Deref, L: Deref, ES: Deref + Clone, SP: Deref + Clone>
368+
impl<K: Deref, L: Deref, ES: Deref, SP: Deref>
369369
MonitorUpdatingPersister<K, L, ES, SP>
370370
where
371371
K::Target: KVStore,
@@ -578,7 +578,7 @@ where
578578
}
579579
}
580580

581-
impl<ChannelSigner: WriteableEcdsaChannelSigner, K: Deref, L: Deref, ES: Deref + Clone, SP: Deref + Clone>
581+
impl<ChannelSigner: WriteableEcdsaChannelSigner, K: Deref, L: Deref, ES: Deref, SP: Deref>
582582
Persist<ChannelSigner> for MonitorUpdatingPersister<K, L, ES, SP>
583583
where
584584
K::Target: KVStore,

0 commit comments

Comments
 (0)