From 389cde895ec175fa00bb328b1cc04a919e14c59f Mon Sep 17 00:00:00 2001 From: Stefan Lankes Date: Sat, 25 May 2024 10:08:33 +0200 Subject: [PATCH] remove compiler warnings --- src/executor/device.rs | 2 +- src/fd/socket/udp.rs | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/executor/device.rs b/src/executor/device.rs index 7879f1bd26..83dfae38c8 100644 --- a/src/executor/device.rs +++ b/src/executor/device.rs @@ -10,7 +10,7 @@ use smoltcp::socket::dhcpv4; #[cfg(all(feature = "dns", not(feature = "dhcpv4")))] use smoltcp::socket::dns; use smoltcp::time::Instant; -#[cfg(any(feature = "dns", not(feature = "dhcpv4")))] +#[cfg(not(feature = "dhcpv4"))] use smoltcp::wire::Ipv4Address; use smoltcp::wire::{EthernetAddress, HardwareAddress}; #[cfg(not(feature = "dhcpv4"))] diff --git a/src/fd/socket/udp.rs b/src/fd/socket/udp.rs index 054df2dad5..10a9719b6a 100644 --- a/src/fd/socket/udp.rs +++ b/src/fd/socket/udp.rs @@ -15,12 +15,6 @@ use crate::executor::network::{now, Handle, NetworkState, NIC}; use crate::executor::{block_on, poll_on}; use crate::fd::{IoCtl, IoError, ObjectInterface, PollEvent}; -#[derive(Debug)] -pub struct IPv4; - -#[derive(Debug)] -pub struct IPv6; - #[derive(Debug)] pub struct Socket { handle: Handle,