diff --git a/src/config.rs b/src/config.rs index 7e1861a..278e80e 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,14 +1,13 @@ +use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6, ToSocketAddrs}; +#[cfg(feature = "tls")] +use std::path::PathBuf; +use std::time::Duration; + +use clap::Arg; use libdoh::*; use crate::constants::*; -use clap::Arg; -use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6, ToSocketAddrs}; -use std::time::Duration; - -#[cfg(feature = "tls")] -use std::path::PathBuf; - pub fn parse_opts(globals: &mut Globals) { use crate::utils::{verify_remote_server, verify_sock_addr}; @@ -237,6 +236,9 @@ pub fn parse_opts(globals: &mut Globals) { println!("Check out https://dnscrypt.info/stamps/ to compute the actual stamps.\n") } else { - println!("Please provide a fully qualified hostname (-H command-line option) to get test DNS stamps for your server.\n"); + println!( + "Please provide a fully qualified hostname (-H command-line option) to get \ + test DNS stamps for your server.\n" + ); } } diff --git a/src/main.rs b/src/main.rs index 582724c..ef0cf88 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,17 +8,17 @@ mod config; mod constants; mod utils; +use std::net::{IpAddr, Ipv4Addr, SocketAddr}; +use std::sync::Arc; +use std::time::Duration; + +use libdoh::odoh::ODoHRotator; +use libdoh::reexports::tokio; use libdoh::*; use crate::config::*; use crate::constants::*; -use libdoh::odoh::ODoHRotator; -use libdoh::reexports::tokio; -use std::net::{IpAddr, Ipv4Addr, SocketAddr}; -use std::sync::Arc; -use std::time::Duration; - fn main() { let mut runtime_builder = tokio::runtime::Builder::new_multi_thread(); runtime_builder.enable_all();