chore: Run rustfmt for let-else statements

This commit is contained in:
Kévin Commaille 2023-07-04 10:00:15 +02:00 committed by Kévin Commaille
parent be611fc258
commit e751c1b2ac

View File

@ -205,8 +205,9 @@ fn get_page_ids(url: &str) -> Result<HashMap<String, HasDuplicates>> {
continue; continue;
}; };
let Some(id) = tag.attributes.get(b"id".as_slice()) let Some(id) =
.and_then(|s| String::from_utf8(s.0.clone()).ok()) else { tag.attributes.get(b"id".as_slice()).and_then(|s| String::from_utf8(s.0.clone()).ok())
else {
continue; continue;
}; };