From daa4c8228674f955a6d6ff053dfdb350ad6bc1ee Mon Sep 17 00:00:00 2001 From: Smitty Date: Sun, 30 May 2021 19:04:10 -0400 Subject: [PATCH] clean up getfromnet --- examples/getfromnet.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/getfromnet.rs b/examples/getfromnet.rs index d044c7d..2df7bcc 100644 --- a/examples/getfromnet.rs +++ b/examples/getfromnet.rs @@ -1,9 +1,11 @@ use wikidata::*; -use reqwest; 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{}.json", + i + ); let res = reqwest::blocking::get(uri).unwrap(); let text = res.text().unwrap(); if text.contains("

Not Found

No entity with ID ") {