mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 05:06:53 +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;
|
*builder.options_mut() = opts;
|
||||||
let resolver = Arc::new(builder.build().expect("failed to build resolver :("));
|
let resolver = Arc::new(builder.build().expect("failed to build resolver :("));
|
||||||
|
|
||||||
Ok(Arc::new(Self {
|
Ok(Arc::new(Self { resolver, server: server.clone() }))
|
||||||
resolver: resolver.clone(),
|
|
||||||
server: server.clone(),
|
|
||||||
}))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Clear the in-memory hickory-dns caches
|
/// Clear the in-memory hickory-dns caches
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ impl crate::Service for Service {
|
|||||||
.build()?,
|
.build()?,
|
||||||
|
|
||||||
pusher: base(config)?
|
pusher: base(config)?
|
||||||
.dns_resolver(dns.clone())
|
.dns_resolver(dns)
|
||||||
.connect_timeout(Duration::from_secs(config.pusher_conn_timeout))
|
.connect_timeout(Duration::from_secs(config.pusher_conn_timeout))
|
||||||
.timeout(Duration::from_secs(config.pusher_timeout))
|
.timeout(Duration::from_secs(config.pusher_timeout))
|
||||||
.pool_max_idle_per_host(1)
|
.pool_max_idle_per_host(1)
|
||||||
|
|||||||
Reference in new issue
Block a user