From 79045ca326a06c09fdb4e0ef45f5ba9402ecf437 Mon Sep 17 00:00:00 2001 From: Tim Siemers Date: Tue, 7 Jan 2025 16:19:35 +0100 Subject: [PATCH] add explicit lifetime to tcp socket split() function --- embassy-net/src/tcp.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }) }