Quellcode durchsuchen

Fix overly strict lifetime in TcpSocket.

Lucas Zanela vor 5 Jahren
Ursprung
Commit
802c46305a
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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)
     }
 }