Skip to content

Commit 3c9d331

Browse files
committed
f Use Copy rather than Clone
1 parent bde0f6a commit 3c9d331

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lightning/src/events/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2334,7 +2334,7 @@ pub trait EventsProvider {
23342334
/// currently succeed (e.g., due to a persistence failure).
23352335
///
23362336
/// LDK will ensure the event is persisted and will eventually be replayed.
2337-
#[derive(Clone, Debug)]
2337+
#[derive(Clone, Copy, Debug)]
23382338
pub struct ReplayEvent();
23392339

23402340
/// A trait implemented for objects handling events from [`EventsProvider`].

lightning/src/util/async_poll.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl<F: Future<Output = Result<(), ReplayEvent>> + Unpin> Future for MultiEventF
6666
None
6767
},
6868
})
69-
.cloned()
69+
.copied()
7070
.collect();
7171
Poll::Ready(results)
7272
}

0 commit comments

Comments
 (0)