cargo clippy 👍

This commit is contained in:
javalsai 2024-10-19 21:50:54 +02:00
parent 9c55ef19b8
commit bcd349e36f
Signed by: javalsai
SSH Key Fingerprint: SHA256:3G83yKhBUWVABVX/vPWH88xnK4+ptMtHkZGCRXD4Mk8

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