net: fix dead code warning · qinheping/verify-rust-std@c3955e4 (original) (raw)
2 files changed
lines changed
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -6,6 +6,7 @@ use crate::os::xous::ffi::lend_mut; | ||
| 6 | 6 | use crate::os::xous::services::{DnsLendMut, dns_server}; |
| 7 | 7 | |
| 8 | 8 | pub struct DnsError { |
| 9 | +#[allow(dead_code)] | |
| 9 | 10 | pub code: u8, |
| 10 | 11 | } |
| 11 | 12 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -60,6 +60,7 @@ pub mod netc { | ||
| 60 | 60 | |
| 61 | 61 | #[derive(Copy, Clone)] |
| 62 | 62 | pub struct sockaddr_in { |
| 63 | +#[allow(dead_code)] | |
| 63 | 64 | pub sin_family: sa_family_t, |
| 64 | 65 | pub sin_port: u16, |
| 65 | 66 | pub sin_addr: in_addr, |
| @@ -72,6 +73,7 @@ pub mod netc { | ||
| 72 | 73 | |
| 73 | 74 | #[derive(Copy, Clone)] |
| 74 | 75 | pub struct sockaddr_in6 { |
| 76 | +#[allow(dead_code)] | |
| 75 | 77 | pub sin6_family: sa_family_t, |
| 76 | 78 | pub sin6_port: u16, |
| 77 | 79 | pub sin6_addr: in6_addr, |