chore: cargo fmt and clippy
This commit is contained in:
parent
0d8bc4e5cd
commit
c86218be16
4 changed files with 65 additions and 74 deletions
|
@ -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}");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue