Jelajahi Sumber

Fix overly strict lifetime in TcpSocket.

Lucas Zanela 4 tahun lalu
induk
melakukan
802c46305a
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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)
     }
 }