Skip to content

Commit

Permalink
fix failed CI: iface not found; cargo fmt failed
Browse files Browse the repository at this point in the history
  • Loading branch information
scPointer committed Aug 11, 2024
1 parent 553aab4 commit fb43573
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/iface/interface/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ impl InterfaceInner {
{
let mut is_received = false;
for udp_socket in sockets
.items_mut()
.filter_map(|i| UdpSocket::downcast_mut(&mut i.socket))
{
if udp_socket.accepts(self, &ip_repr, &udp_repr) {
udp_socket.process(self, meta, &ip_repr, &udp_repr, udp_packet.payload());
is_received = true;
}
.items_mut()
.filter_map(|i| UdpSocket::downcast_mut(&mut i.socket))
{
if udp_socket.accepts(self, &ip_repr, &udp_repr) {
udp_socket.process(self, meta, &ip_repr, &udp_repr, udp_packet.payload());
is_received = true;
}
}
if is_received {
return None;
}
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,8 @@ pub mod config {
#[cfg(any(
feature = "medium-ethernet",
feature = "medium-ip",
feature = "medium-ieee802154"
feature = "medium-ieee802154",
test,
))]
pub mod iface;

Expand Down

0 comments on commit fb43573

Please sign in to comment.