diff options
| -rw-r--r-- | embassy-net/src/udp.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-net/src/udp.rs b/embassy-net/src/udp.rs index 78db9c8a0..12bdbf402 100644 --- a/embassy-net/src/udp.rs +++ b/embassy-net/src/udp.rs | |||
| @@ -143,19 +143,19 @@ impl<'a, D: Driver> UdpSocket<'a, D> { | |||
| 143 | impl<'a, D: Driver + smoltcp::phy::Device + 'static> UdpSocket<'a, D> { | 143 | impl<'a, D: Driver + smoltcp::phy::Device + 'static> UdpSocket<'a, D> { |
| 144 | pub fn join_multicast_group<T>(&self, addr: T) -> Result<bool, smoltcp::iface::MulticastError> | 144 | pub fn join_multicast_group<T>(&self, addr: T) -> Result<bool, smoltcp::iface::MulticastError> |
| 145 | where | 145 | where |
| 146 | T: Into<IpAddress>, | 146 | T: Into<smoltcp::wire::IpAddress>, |
| 147 | { | 147 | { |
| 148 | self.stack.join_multicast_group(addr) | 148 | self.stack.join_multicast_group(addr) |
| 149 | } | 149 | } |
| 150 | 150 | ||
| 151 | pub fn leave_multicast_group<T>(&self, addr: T) -> Result<bool, smoltcp::iface::MulticastError> | 151 | pub fn leave_multicast_group<T>(&self, addr: T) -> Result<bool, smoltcp::iface::MulticastError> |
| 152 | where | 152 | where |
| 153 | T: Into<IpAddress>, | 153 | T: Into<smoltcp::wire::IpAddress>, |
| 154 | { | 154 | { |
| 155 | self.stack.leave_multicast_group(addr) | 155 | self.stack.leave_multicast_group(addr) |
| 156 | } | 156 | } |
| 157 | 157 | ||
| 158 | pub fn has_multicast_group<T: Into<IpAddress>>(&self, addr: T) -> bool { | 158 | pub fn has_multicast_group<T: Into<smoltcp::wire::IpAddress>>(&self, addr: T) -> bool { |
| 159 | self.stack.has_multicast_group(addr) | 159 | self.stack.has_multicast_group(addr) |
| 160 | } | 160 | } |
| 161 | } | 161 | } |
