Skip to content

Commit

Permalink
remove gratuitous drops as unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
emillynge committed Jan 17, 2022
1 parent 8f7f44e commit 74dda1c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/transport/noise.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,5 @@ impl Transport for NoiseTransport {
}

async fn close(&self, a: Self::Acceptor) {
drop(a); // gratuitous drop
}
}
1 change: 0 additions & 1 deletion src/transport/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,5 @@ impl Transport for TcpTransport {
}

async fn close(&self, a: Self::Acceptor) {
drop(a); // gratuitous drop
}
}
1 change: 0 additions & 1 deletion src/transport/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,5 @@ impl Transport for TlsTransport {
}

async fn close(&self, a: Self::Acceptor) {
drop(a); // gratuitous drop
}
}

0 comments on commit 74dda1c

Please sign in to comment.