Skip to content

Commit

Permalink
refactor: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ephyy committed Jan 27, 2025
1 parent 1746db3 commit 703b986
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use dns_rust::{
async_resolver::{
config::ResolverConfig, AsyncResolver, server_info::ServerInfo
}, client::{
client_connection::ClientConnection, client_error::ClientError, tcp_connection::ClientTCPConnection, udp_connection::ClientUDPConnection, Client}, domain_name::DomainName, message::resource_record::ResourceRecord};
client_connection::ClientConnection, client_error::ClientError, tcp_connection::ClientTCPConnection, udp_connection::ClientUDPConnection, Client}, domain_name::DomainName};

use clap::*;
use rand::{thread_rng, Rng};
Expand Down Expand Up @@ -111,12 +111,6 @@ fn parse_edns_options(options: Vec<String>) -> Vec<OptionCode> {
})
.collect()
}
fn print_response(response: Result<Vec<ResourceRecord>, ClientError>) {
match response {
Ok(rrs) => println!("{:?}", rrs),
Err(e) => println!("{:?}", e),
}
}

fn print_response_from_lookup(response: Result<LookupResponse, ClientError>) {
match response {
Expand Down

0 comments on commit 703b986

Please sign in to comment.