This commit is contained in:
2026-05-09 22:38:08 +01:00
parent eb9cfd3375
commit c270565f96

View File

@@ -90,7 +90,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
println!("Failed to read environment variable URLS_TXT_BIND_ADDRESS: {e}");
Err(e)?
}
};
let config = spawn_blocking(move || std::fs::read_to_string(urls_filename)).await??;
@@ -100,7 +99,12 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
continue;
}
if url_pair.chars().next().expect("String is longer than 1 character") != '/' {
if url_pair
.chars()
.next()
.expect("String is longer than 1 character")
!= '/'
{
continue;
}