Sfoglia il codice sorgente

Fix overly strict lifetime in TcpSocket.

Lucas Zanela 4 anni fa
parent
commit
802c46305a
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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)
     }
 }