mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-20 00:00:08 +02:00
tls: fix new temporary lifetime rustc error [E0597] (#1547)
Fixes: #1546 Signed-off-by: Kirill Mironov <[email protected]>
This commit is contained in:
committed by
Sean McArthur
parent
9b3f8564af
commit
f69ee652e6
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user