diff options
| -rw-r--r-- | embassy-net/src/tcp.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-net/src/tcp.rs b/embassy-net/src/tcp.rs index 57c9b7a04..9dfbba32b 100644 --- a/embassy-net/src/tcp.rs +++ b/embassy-net/src/tcp.rs | |||
| @@ -555,7 +555,7 @@ mod embedded_io_impls { | |||
| 555 | 555 | ||
| 556 | impl<'d> embedded_io_async::ReadReady for TcpSocket<'d> { | 556 | impl<'d> embedded_io_async::ReadReady for TcpSocket<'d> { |
| 557 | fn read_ready(&mut self) -> Result<bool, Self::Error> { | 557 | fn read_ready(&mut self) -> Result<bool, Self::Error> { |
| 558 | Ok(self.io.with(|s, _| s.may_recv())) | 558 | Ok(self.io.with(|s, _| s.can_recv())) |
| 559 | } | 559 | } |
| 560 | } | 560 | } |
| 561 | 561 | ||
| @@ -587,7 +587,7 @@ mod embedded_io_impls { | |||
| 587 | 587 | ||
| 588 | impl<'d> embedded_io_async::ReadReady for TcpReader<'d> { | 588 | impl<'d> embedded_io_async::ReadReady for TcpReader<'d> { |
| 589 | fn read_ready(&mut self) -> Result<bool, Self::Error> { | 589 | fn read_ready(&mut self) -> Result<bool, Self::Error> { |
| 590 | Ok(self.io.with(|s, _| s.may_recv())) | 590 | Ok(self.io.with(|s, _| s.can_recv())) |
| 591 | } | 591 | } |
| 592 | } | 592 | } |
| 593 | 593 | ||
