mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
tls: fix new temporary lifetime rustc error [E0597] (#1547)
Fixes: #1546 Signed-off-by: Kirill Mironov <vetrokm@gmail.com>
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user