Fix overly strict lifetime in TcpSocket.

v0.7.x
Lucas Zanela 2020-06-15 09:39:06 -03:00 committed by GitHub
parent d1e614516a
commit d5c44a37d5
1 changed files with 2 additions and 2 deletions

View File

@ -1685,8 +1685,8 @@ impl<'a> TcpSocket<'a> {
}
}
impl<'a> Into<Socket<'a, 'a>> for TcpSocket<'a> {
fn into(self) -> Socket<'a, 'a> {
impl<'a, 'b> Into<Socket<'a, 'b>> for TcpSocket<'a> {
fn into(self) -> Socket<'a, 'b> {
Socket::Tcp(self)
}
}