Fix clippy lint.

This commit is contained in:
Tom Alexander 2024-09-29 17:42:08 -04:00
parent 613026b326
commit 65c964b329
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -98,7 +98,7 @@ pub async fn local_trigger(payload: &str) -> Result<(), Box<dyn std::error::Erro
let allowed_repos = std::env::var("WEBHOOK_BRIDGE_REPO_WHITELIST") let allowed_repos = std::env::var("WEBHOOK_BRIDGE_REPO_WHITELIST")
.ok() .ok()
.unwrap_or_else(String::new); .unwrap_or_default();
let allowed_repos: HashSet<_> = allowed_repos let allowed_repos: HashSet<_> = allowed_repos
.split(",") .split(",")
.filter(|s| !s.is_empty()) .filter(|s| !s.is_empty())