Skip to content

Commit

Permalink
Fix clippy suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Mar 12, 2020
1 parent 67f448c commit 47f58b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quinn-proto/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ where
if !packet.retransmits.is_empty() {
// Remove retransmitted data from the old packet so we don't end up retransmitting
// it *again* even if the copy we're sending now gets acknowledged.
space.pending += mem::replace(&mut packet.retransmits, Retransmits::default());
space.pending += mem::take(&mut packet.retransmits);
return;
}
}
Expand Down

0 comments on commit 47f58b4

Please sign in to comment.