Skip to content

Commit a287a3f

Browse files
committed
minor: make clippy happy
1 parent 4b6a21c commit a287a3f

File tree

1 file changed

+1
-1
lines changed
  • src/protocol/libp2p/bitswap

1 file changed

+1
-1
lines changed

src/protocol/libp2p/bitswap/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ async fn send_response(substream: &mut Substream, entries: Vec<ResponseType>) ->
539539
// Send presences in a separate message to not deal with it when batching blocks below.
540540
if let Some((message, cid_count)) =
541541
presences_message(entries.iter().filter_map(|entry| match entry {
542-
ResponseType::Presence { cid, presence } => Some((cid.clone(), *presence)),
542+
ResponseType::Presence { cid, presence } => Some((*cid, *presence)),
543543
ResponseType::Block { .. } => None,
544544
}))
545545
{

0 commit comments

Comments
 (0)