lint: Cargo fmt
This commit is contained in:
		
							parent
							
								
									468c4266c8
								
							
						
					
					
						commit
						b62e3e1d47
					
				| @ -308,31 +308,25 @@ impl<D: Driver + 'static> Stack<D> { | ||||
| impl<D: Driver + smoltcp::phy::Device + 'static> Stack<D> { | ||||
|     pub(crate) fn join_multicast_group<T>(&self, addr: T) -> Result<bool, smoltcp::iface::MulticastError> | ||||
|     where | ||||
|             T: Into<IpAddress> | ||||
|         T: Into<IpAddress>, | ||||
|     { | ||||
|         let addr = addr.into(); | ||||
| 
 | ||||
|         self.with_mut(|s, i| { | ||||
|             s.iface.join_multicast_group( | ||||
|                 &mut i.device, | ||||
|                 addr, | ||||
|                 instant_to_smoltcp(Instant::now()), | ||||
|             ) | ||||
|             s.iface | ||||
|                 .join_multicast_group(&mut i.device, addr, instant_to_smoltcp(Instant::now())) | ||||
|         }) | ||||
|     } | ||||
| 
 | ||||
|     pub(crate) fn leave_multicast_group<T>(&self, addr: T) -> Result<bool, smoltcp::iface::MulticastError> | ||||
|     where | ||||
|             T: Into<IpAddress> | ||||
|         T: Into<IpAddress>, | ||||
|     { | ||||
|         let addr = addr.into(); | ||||
| 
 | ||||
|         self.with_mut(|s, i| { | ||||
|             s.iface.leave_multicast_group( | ||||
|                 &mut i.device, | ||||
|                 addr, | ||||
|                 instant_to_smoltcp(Instant::now()), | ||||
|             ) | ||||
|             s.iface | ||||
|                 .leave_multicast_group(&mut i.device, addr, instant_to_smoltcp(Instant::now())) | ||||
|         }) | ||||
|     } | ||||
| 
 | ||||
|  | ||||
| @ -50,10 +50,7 @@ impl<'a, D: Driver> UdpSocket<'a, D> { | ||||
|             udp::PacketBuffer::new(tx_meta, tx_buffer), | ||||
|         )); | ||||
| 
 | ||||
|         Self { | ||||
|             stack, | ||||
|             handle, | ||||
|         } | ||||
|         Self { stack, handle } | ||||
|     } | ||||
| 
 | ||||
|     pub fn bind<T>(&mut self, endpoint: T) -> Result<(), BindError> | ||||
| @ -147,14 +144,14 @@ impl<'a, D: Driver> UdpSocket<'a, D> { | ||||
| impl<'a, D: Driver + smoltcp::phy::Device + 'static> UdpSocket<'a, D> { | ||||
|     pub fn join_multicast_group<T>(&self, addr: T) -> Result<bool, smoltcp::iface::MulticastError> | ||||
|     where | ||||
|             T: Into<IpAddress> | ||||
|         T: Into<IpAddress>, | ||||
|     { | ||||
|         self.stack.join_multicast_group(addr) | ||||
|     } | ||||
| 
 | ||||
|     pub fn leave_multicast_group<T>(&self, addr: T) -> Result<bool, smoltcp::iface::MulticastError> | ||||
|     where | ||||
|             T: Into<IpAddress> | ||||
|         T: Into<IpAddress>, | ||||
|     { | ||||
|         self.stack.leave_multicast_group(addr) | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user