Browse Source

Fix overly strict lifetime in TcpSocket.

Lucas Zanela 4 years ago
parent
commit
802c46305a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/socket/tcp.rs

+ 2 - 2
src/socket/tcp.rs

@@ -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)
     }
 }