net: fix dead code warning

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2024-06-11 00:31:32 +08:00
parent 7304cf4765
commit 3d00c5cd5e
2 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,7 @@
use crate::os::xous::services::{DnsLendMut, dns_server};
pub struct DnsError {
#[allow(dead_code)]
pub code: u8,
}

View File

@ -60,6 +60,7 @@ pub struct in_addr {
#[derive(Copy, Clone)]
pub struct sockaddr_in {
#[allow(dead_code)]
pub sin_family: sa_family_t,
pub sin_port: u16,
pub sin_addr: in_addr,
@ -72,6 +73,7 @@ pub struct in6_addr {
#[derive(Copy, Clone)]
pub struct sockaddr_in6 {
#[allow(dead_code)]
pub sin6_family: sa_family_t,
pub sin6_port: u16,
pub sin6_addr: in6_addr,