From 25d579bf307d548bd401ade98f1650aeac4dbc44 Mon Sep 17 00:00:00 2001 From: Litr0 Date: Tue, 6 Aug 2024 16:42:28 -0400 Subject: [PATCH] Delete unused variables --- src/async_resolver.rs | 1 - src/async_resolver/config.rs | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/async_resolver.rs b/src/async_resolver.rs index 8495155f..acec5293 100644 --- a/src/async_resolver.rs +++ b/src/async_resolver.rs @@ -2036,7 +2036,6 @@ mod async_resolver_test { resolver.save_negative_answers(dns_response.clone()); - let rrtype_search = Rrtype::A; assert_eq!(dns_response.get_answer().len(), 0); assert_eq!(dns_response.get_additional().len(), 1); assert_eq!( diff --git a/src/async_resolver/config.rs b/src/async_resolver/config.rs index d4f20c21..6dede8a8 100644 --- a/src/async_resolver/config.rs +++ b/src/async_resolver/config.rs @@ -3,8 +3,6 @@ use crate::client::client_connection::ConnectionProtocol; use crate::message::DnsMessage; use crate::tsig::tsig_algorithm::TsigAlgorithm; use std::cmp::max; -use std::io::SeekFrom; -use std::option; use std::{net::{IpAddr,SocketAddr,Ipv4Addr}, time::Duration}; use super::server_info::ServerInfo;