1 Commits

Author SHA1 Message Date
bcd349e36f cargo clippy 👍 2024-10-19 21:50:54 +02:00

View File

@@ -139,11 +139,9 @@ fn extract_img_url(html: &str) -> Result<String, &'static str> {
.find(html)
{
Ok(img_url.as_str().to_string())
} else if html.contains("503 Rate limiting") {
Err("ratelimited")
} else {
if html.contains("503 Rate limiting") {
Err("ratelimited")
} else {
Ok(String::new())
}
Ok(String::new())
}
}