diff --git a/embassy-net/src/tcp.rs b/embassy-net/src/tcp.rs index d0230b5810..6056c8d722 100644 --- a/embassy-net/src/tcp.rs +++ b/embassy-net/src/tcp.rs @@ -235,7 +235,7 @@ impl<'a> TcpSocket<'a> { } /// Split the socket into reader and a writer halves. - pub fn split(&mut self) -> (TcpReader<'_>, TcpWriter<'_>) { + pub fn split<'b>(&'b mut self) -> (TcpReader<'a>, TcpWriter<'a>) { (TcpReader { io: self.io }, TcpWriter { io: self.io }) }