lint: Cargo fmt
This commit is contained in:
@ -307,32 +307,26 @@ impl<D: Driver + 'static> Stack<D> {
|
||||
#[cfg(feature = "igmp")]
|
||||
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>
|
||||
where
|
||||
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>
|
||||
where
|
||||
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()))
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user