Skip to content

Commit

Permalink
Apply rustfmt on igmp.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasvr committed Apr 17, 2024
1 parent cf1744a commit d52a196
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/iface/interface/igmp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ impl Interface {
#[cfg(feature = "proto-ipv6")]
IpAddress::Ipv6(addr) => {
// Build report packet containing this new address
let report_record = &[MldAddressRecordRepr::new(MldRecordType::ChangeToInclude, addr)];
let report_record = &[MldAddressRecordRepr::new(
MldRecordType::ChangeToInclude,
addr,
)];
let is_not_new = self
.inner
.ipv6_multicast_groups
Expand Down Expand Up @@ -142,7 +145,10 @@ impl Interface {
}
#[cfg(feature = "proto-ipv6")]
IpAddress::Ipv6(addr) => {
let report_record = &[MldAddressRecordRepr::new(MldRecordType::ChangeToExclude, addr)];
let report_record = &[MldAddressRecordRepr::new(
MldRecordType::ChangeToExclude,
addr,
)];
let was_not_present = self.inner.ipv6_multicast_groups.remove(&addr).is_none();
if was_not_present {
Ok(false)
Expand Down

0 comments on commit d52a196

Please sign in to comment.