mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 12:16:54 +00:00
fix: Cargo clippy messages
This commit is contained in:
1 parent
0d5789f727
commit
edbaceafaa
2 files changed
+2
-5
No files matched your search
@@ -69,10 +69,7 @@ impl Resolver {
|
||||
*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 @@ impl crate::Service for Service {
|
||||
.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