diff options
| author | Leon Camus <[email protected]> | 2023-03-07 23:52:25 +0100 |
|---|---|---|
| committer | Leon Camus <[email protected]> | 2023-03-07 23:52:25 +0100 |
| commit | 993875e11fc58a476b1e08d4aba752b83bb2b885 (patch) | |
| tree | 795b1b05bcab752d6fd14895e472cfdef37891a7 /embassy-net | |
| parent | 208756100304647d2ba12507b494663ddd37e90c (diff) | |
fix: Add qualified imports
Diffstat (limited to 'embassy-net')
| -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 | } |
