Skip to content

Commit

Permalink
tls: fix new temporary lifetime rustc error [E0597] (#1547)
Browse files Browse the repository at this point in the history
Fixes: #1546
Signed-off-by: Kirill Mironov <vetrokm@gmail.com>
  • Loading branch information
Drevoed authored and seanmonstar committed Sep 11, 2019
1 parent 9b3f856 commit f69ee65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokio-tls/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl TlsConnector {
where
S: AsyncRead + AsyncWrite + Unpin,
{
handshake(|s| self.0.connect(domain, s), stream).await
handshake(move |s| self.0.connect(domain, s), stream).await
}
}

Expand Down Expand Up @@ -318,7 +318,7 @@ impl TlsAcceptor {
where
S: AsyncRead + AsyncWrite + Unpin,
{
handshake(|s| self.0.accept(s), stream).await
handshake(move |s| self.0.accept(s), stream).await
}
}

Expand Down

0 comments on commit f69ee65

Please sign in to comment.