cargo clippy 👍

This commit is contained in:
2024-10-19 21:50:54 +02:00
parent 9c55ef19b8
commit bcd349e36f

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())
}
}