Skip to content

Commit 703b986

Browse files
committed
refactor: remove unused code
1 parent 1746db3 commit 703b986

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/main.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use dns_rust::{
44
async_resolver::{
55
config::ResolverConfig, AsyncResolver, server_info::ServerInfo
66
}, client::{
7-
client_connection::ClientConnection, client_error::ClientError, tcp_connection::ClientTCPConnection, udp_connection::ClientUDPConnection, Client}, domain_name::DomainName, message::resource_record::ResourceRecord};
7+
client_connection::ClientConnection, client_error::ClientError, tcp_connection::ClientTCPConnection, udp_connection::ClientUDPConnection, Client}, domain_name::DomainName};
88

99
use clap::*;
1010
use rand::{thread_rng, Rng};
@@ -111,12 +111,6 @@ fn parse_edns_options(options: Vec<String>) -> Vec<OptionCode> {
111111
})
112112
.collect()
113113
}
114-
fn print_response(response: Result<Vec<ResourceRecord>, ClientError>) {
115-
match response {
116-
Ok(rrs) => println!("{:?}", rrs),
117-
Err(e) => println!("{:?}", e),
118-
}
119-
}
120114

121115
fn print_response_from_lookup(response: Result<LookupResponse, ClientError>) {
122116
match response {

0 commit comments

Comments
 (0)