fix all the warnings!!!! (0 clippy and rustc warnings now)
too many changes to list, codebase significantly better than it was a few weeks ago though Signed-off-by: strawberry <june@girlboss.ceo>
This commit is contained in:
@@ -109,13 +109,15 @@ impl Default for RotationHandler {
|
||||
}
|
||||
}
|
||||
|
||||
type DnsOverrides = Box<dyn Fn(&str) -> Option<SocketAddr> + Send + Sync>;
|
||||
|
||||
pub struct Resolver {
|
||||
inner: GaiResolver,
|
||||
overrides: Box<dyn Fn(&str) -> Option<SocketAddr> + Send + Sync>,
|
||||
overrides: DnsOverrides,
|
||||
}
|
||||
|
||||
impl Resolver {
|
||||
pub fn new(overrides: Box<dyn Fn(&str) -> Option<SocketAddr> + Send + Sync>) -> Resolver {
|
||||
pub fn new(overrides: DnsOverrides) -> Resolver {
|
||||
Resolver {
|
||||
inner: GaiResolver::new(),
|
||||
overrides,
|
||||
|
||||
Reference in New Issue
Block a user