style: cargo fmt

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Razvan Dimescu
2026-03-24 00:36:00 +02:00
parent 007b8593c5
commit a82ef1d1e5
2 changed files with 7 additions and 8 deletions

View File

@@ -162,10 +162,7 @@ mod tests {
let body = response_bytes.clone();
async move {
(
[(
axum::http::header::CONTENT_TYPE,
"application/dns-message",
)],
[(axum::http::header::CONTENT_TYPE, "application/dns-message")],
body,
)
}
@@ -192,7 +189,10 @@ mod tests {
match &result.answers[0] {
DnsRecord::A { domain, addr, ttl } => {
assert_eq!(domain, "example.com");
assert_eq!(*addr, "93.184.216.34".parse::<std::net::Ipv4Addr>().unwrap());
assert_eq!(
*addr,
"93.184.216.34".parse::<std::net::Ipv4Addr>().unwrap()
);
assert_eq!(*ttl, 300);
}
other => panic!("expected A record, got {:?}", other),
@@ -240,8 +240,7 @@ mod tests {
client: reqwest::Client::new(),
};
let result =
forward_query(&make_query(), &upstream, Duration::from_millis(100)).await;
let result = forward_query(&make_query(), &upstream, Duration::from_millis(100)).await;
assert!(result.is_err());
}
}

View File

@@ -7,11 +7,11 @@ use log::{error, info};
use tokio::net::UdpSocket;
use numa::blocklist::{download_blocklists, parse_blocklist, BlocklistStore};
use numa::forward::Upstream;
use numa::buffer::BytePacketBuffer;
use numa::cache::DnsCache;
use numa::config::{build_zone_map, load_config, ConfigLoad};
use numa::ctx::{handle_query, ServerCtx};
use numa::forward::Upstream;
use numa::override_store::OverrideStore;
use numa::query_log::QueryLog;
use numa::service_store::ServiceStore;