Skip to content

Commit

Permalink
chore: Fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
vadorovsky committed Jul 17, 2024
1 parent 39d3f78 commit 8d28f85
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/modules/network-monitor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,14 +697,13 @@ pub mod test_suite {
) -> TestReport {
// Create necessary copies for each non-terminal closure.
let dns_server_domain = domain.clone();
let dns_server_address = address.clone();
let dns_query_domain = domain.clone();
TestRunner::with_ebpf(program)
.run_async(async move {
// DNS server.
let mut server = Server::default();
server
.add_records(&dns_server_domain, vec![dns_server_address])
.add_records(&dns_server_domain, vec![address])
.unwrap();
let socket = tokio::net::UdpSocket::bind(&addr).await.unwrap();
let local_addr = socket.local_addr().unwrap();
Expand Down

0 comments on commit 8d28f85

Please sign in to comment.