Fix clippy errors

This commit is contained in:
Dirkjan Ochtman
2019-04-16 17:18:25 +02:00
committed by Benjamin Saunders
parent 5f9a2213c3
commit 851b6e296c
2 changed files with 1 additions and 2 deletions
-1
View File
@@ -618,7 +618,6 @@ impl Connection {
);
}
}
mem::drop(space);
// OnPacketsLost
if let Some(largest_lost) = lost_packets.last().cloned() {
+1 -1
View File
@@ -803,7 +803,7 @@ pub enum SpaceId {
impl SpaceId {
pub fn iter() -> impl Iterator<Item = Self> {
[SpaceId::Initial, SpaceId::Handshake, SpaceId::Data]
.into_iter()
.iter()
.cloned()
}
}