Skip to content

Commit 2e435de

Browse files
authored
Merge pull request #3696 from TheBlueMatt/2024-03-one-less-clone
Remove an unnecessary clone
2 parents 64e14be + 0126975 commit 2e435de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channelmanager.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12775,7 +12775,7 @@ fn enqueue_onion_message_with_reply_paths<T: OnionMessageContents + Clone>(
1277512775
.flat_map(|reply_path|
1277612776
message_paths
1277712777
.iter()
12778-
.map(move |path| (path.clone(), reply_path))
12778+
.map(move |path| (path, reply_path))
1277912779
)
1278012780
.take(OFFERS_MESSAGE_REQUEST_LIMIT)
1278112781
.for_each(|(path, reply_path)| {

0 commit comments

Comments
 (0)