diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-11-08 22:59:58 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-11-10 16:43:53 +0100 |
| commit | 4647df14b16c95ef56bf2e6cc4303583be3b4846 (patch) | |
| tree | 69c591be4841ab1c8fd5046bee0d399133c4577c /embassy-net/src/tcp.rs | |
| parent | b3367be9c8f0eb54d500dc2e6f652ade05859088 (diff) | |
Update heapless to v0.8, embedded-nal-async to v0.7
Diffstat (limited to 'embassy-net/src/tcp.rs')
| -rw-r--r-- | embassy-net/src/tcp.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/embassy-net/src/tcp.rs b/embassy-net/src/tcp.rs index bcd5bb618..90fd08e94 100644 --- a/embassy-net/src/tcp.rs +++ b/embassy-net/src/tcp.rs | |||
| @@ -618,10 +618,7 @@ pub mod client { | |||
| 618 | async fn connect<'a>( | 618 | async fn connect<'a>( |
| 619 | &'a self, | 619 | &'a self, |
| 620 | remote: embedded_nal_async::SocketAddr, | 620 | remote: embedded_nal_async::SocketAddr, |
| 621 | ) -> Result<Self::Connection<'a>, Self::Error> | 621 | ) -> Result<Self::Connection<'a>, Self::Error> { |
| 622 | where | ||
| 623 | Self: 'a, | ||
| 624 | { | ||
| 625 | let addr: crate::IpAddress = match remote.ip() { | 622 | let addr: crate::IpAddress = match remote.ip() { |
| 626 | #[cfg(feature = "proto-ipv4")] | 623 | #[cfg(feature = "proto-ipv4")] |
| 627 | IpAddr::V4(addr) => crate::IpAddress::Ipv4(crate::Ipv4Address::from_bytes(&addr.octets())), | 624 | IpAddr::V4(addr) => crate::IpAddress::Ipv4(crate::Ipv4Address::from_bytes(&addr.octets())), |
