chore: cargo fmt and clippy

This commit is contained in:
Elijah McMorris 2025-06-27 13:48:17 -07:00
parent 0d8bc4e5cd
commit c86218be16
Signed by: NexVeridian
SSH key fingerprint: SHA256:bsA1SKZxuEcEVHAy3gY1HUeM5ykRJl0U0kQHQn0hMg8
4 changed files with 65 additions and 74 deletions

View file

@ -2,10 +2,7 @@ use wikidata::*;
fn main() {
for i in 1_usize.. {
let uri = format!(
"https://www.wikidata.org/wiki/Special:EntityData/Q{}.json",
i
);
let uri = format!("https://www.wikidata.org/wiki/Special:EntityData/Q{i}.json");
let res = reqwest::blocking::get(uri).unwrap();
let text = res.text().unwrap();
if text.contains("<h1>Not Found</h1><p>No entity with ID ") {
@ -13,6 +10,6 @@ fn main() {
}
let ent = Entity::from_json(serde_json::from_str(&text).unwrap()).unwrap();
let _ = ent;
println!("verified Q{}", i);
println!("verified Q{i}");
}
}