forked from danmax/r34-scraper
cargo clippy 👍
This commit is contained in:
parent
9c55ef19b8
commit
bcd349e36f
@ -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") {
|
||||
} else if html.contains("503 Rate limiting") {
|
||||
Err("ratelimited")
|
||||
} else {
|
||||
Ok(String::new())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user