clippy
This commit is contained in:
parent
a77a4cde22
commit
88329a79e2
@ -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 New Issue
Block a user