cleanup Rust lint that appeared in 1.70

This commit is contained in:
bunnie 2023-06-04 19:10:10 +08:00
parent 12acdbef5b
commit 39cd7f8b0a
2 changed files with 2 additions and 3 deletions

View file

@ -307,7 +307,7 @@ impl Message {
pub struct Resolver { pub struct Resolver {
/// DnsServerManager is a service of the Net crate that automatically updates the DNS server list /// DnsServerManager is a service of the Net crate that automatically updates the DNS server list
mgr: net::DnsServerManager, mgr: net::protocols::DnsServerManager,
socket: UdpSocket, socket: UdpSocket,
buf: [u8; DNS_PKT_MAX_LEN], buf: [u8; DNS_PKT_MAX_LEN],
trng: trng::Trng, trng: trng::Trng,
@ -328,7 +328,7 @@ impl Resolver {
// blocking is probably what we actually want this time. // blocking is probably what we actually want this time.
Resolver { Resolver {
mgr: net::DnsServerManager::register(&xns) mgr: net::protocols::DnsServerManager::register(&xns)
.expect("Couldn't register the DNS server list auto-manager"), .expect("Couldn't register the DNS server list auto-manager"),
socket, socket,
buf: [0; DNS_PKT_MAX_LEN], buf: [0; DNS_PKT_MAX_LEN],

View file

@ -7,7 +7,6 @@ use xous_ipc::Buffer;
use num_traits::*; use num_traits::*;
pub mod protocols; pub mod protocols;
pub use protocols::*;
pub use smoltcp::time::Duration; pub use smoltcp::time::Duration;
pub use api::*; pub use api::*;
pub use smoltcp::wire::IpEndpoint; pub use smoltcp::wire::IpEndpoint;