forked from mirrors/relay
clippy
This commit is contained in:
parent
a77a4cde22
commit
88329a79e2
2 changed files with 2 additions and 3 deletions
|
@ -171,7 +171,7 @@ impl Config {
|
||||||
let local_domains = config
|
let local_domains = config
|
||||||
.local_domains
|
.local_domains
|
||||||
.iter()
|
.iter()
|
||||||
.flat_map(|s| s.split(","))
|
.flat_map(|s| s.split(','))
|
||||||
.map(|d| d.to_string())
|
.map(|d| d.to_string())
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,7 @@ pub(crate) async fn route(
|
||||||
config
|
config
|
||||||
.local_domains()
|
.local_domains()
|
||||||
.iter()
|
.iter()
|
||||||
.find(|domain| domain.as_str() == authority)
|
.any(|domain| domain.as_str() == authority)
|
||||||
.is_some()
|
|
||||||
})
|
})
|
||||||
.unwrap_or(false)
|
.unwrap_or(false)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue