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
|
||||
.local_domains
|
||||
.iter()
|
||||
.flat_map(|s| s.split(","))
|
||||
.flat_map(|s| s.split(','))
|
||||
.map(|d| d.to_string())
|
||||
.collect();
|
||||
|
||||
|
|
|
@ -33,8 +33,7 @@ pub(crate) async fn route(
|
|||
config
|
||||
.local_domains()
|
||||
.iter()
|
||||
.find(|domain| domain.as_str() == authority)
|
||||
.is_some()
|
||||
.any(|domain| domain.as_str() == authority)
|
||||
})
|
||||
.unwrap_or(false)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue