Skip to content

Commit

Permalink
Fix clippys
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirbaio committed Nov 3, 2021
1 parent d242ff4 commit 21e3dad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/iface/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3582,12 +3582,12 @@ mod test {
#[cfg(feature = "proto-igmp")]
fn test_handle_igmp() {
fn recv_igmp(
mut iface: &mut Interface<'_, Loopback>,
iface: &mut Interface<'_, Loopback>,
timestamp: Instant,
) -> Vec<(Ipv4Repr, IgmpRepr)> {
let caps = iface.device.capabilities();
let checksum_caps = &caps.checksum;
recv_all(&mut iface, timestamp)
recv_all(iface, timestamp)
.iter()
.filter_map(|frame| {
let ipv4_packet = match caps.medium {
Expand Down
4 changes: 1 addition & 3 deletions src/socket/dhcpv4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,7 @@ mod test {
});
}

if i != reprs.len() {
panic!("Too few reprs emitted. Wanted {}, got {}", reprs.len(), i);
}
assert_eq!(i, reprs.len());
}

macro_rules! send {
Expand Down

0 comments on commit 21e3dad

Please sign in to comment.