mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-07-09 22:21:39 +00:00
fix: Cargo clippy messages
This commit is contained in:
@@ -69,10 +69,7 @@ pub(super) fn build(server: &Arc<Server>) -> Result<Arc<Self>> {
|
||||
*builder.options_mut() = opts;
|
||||
let resolver = Arc::new(builder.build().expect("failed to build resolver :("));
|
||||
|
||||
Ok(Arc::new(Self {
|
||||
resolver: resolver.clone(),
|
||||
server: server.clone(),
|
||||
}))
|
||||
Ok(Arc::new(Self { resolver, server: server.clone() }))
|
||||
}
|
||||
|
||||
/// Clear the in-memory hickory-dns caches
|
||||
|
||||
@@ -132,7 +132,7 @@ fn build(args: crate::Args<'_>) -> Result<Arc<Self>> {
|
||||
.build()?,
|
||||
|
||||
pusher: base(config)?
|
||||
.dns_resolver(dns.clone())
|
||||
.dns_resolver(dns)
|
||||
.connect_timeout(Duration::from_secs(config.pusher_conn_timeout))
|
||||
.timeout(Duration::from_secs(config.pusher_timeout))
|
||||
.pool_max_idle_per_host(1)
|
||||
|
||||
Reference in New Issue
Block a user