Fix clippy warnings remove unused imports

This commit is contained in:
Devin Ragotzy 2021-01-05 09:21:41 -05:00 committed by Timo Kösters
parent 0ee239c9d7
commit 7c4d74bf9b
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
7 changed files with 39 additions and 34 deletions

View file

@ -9,13 +9,15 @@ use trust_dns_resolver::TokioAsyncResolver;
pub const COUNTER: &str = "c";
pub type DestinationCache = Arc<RwLock<HashMap<Box<ServerName>, (String, Option<String>)>>>;
#[derive(Clone)]
pub struct Globals {
pub(super) globals: sled::Tree,
config: Config,
keypair: Arc<ruma::signatures::Ed25519KeyPair>,
reqwest_client: reqwest::Client,
pub actual_destination_cache: Arc<RwLock<HashMap<Box<ServerName>, (String, Option<String>)>>>, // actual_destination, host
pub actual_destination_cache: DestinationCache, // actual_destination, host
dns_resolver: TokioAsyncResolver,
}