Make output messages more consistent

This commit is contained in:
Paul van Tilburg 2022-02-14 21:13:35 +01:00
parent 8d19dbb517
commit 79981314d3
Signed by untrusted user: paul
GPG Key ID: C6DE073EDA9EEC4D
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ pub(crate) async fn get(lat: f64, lon: f64, metric: Metric) -> Option<Vec<Item>>
.append_pair("lat", &format!("{:.02}", lat))
.append_pair("lon", &format!("{:.02}", lon));
println!("▶️ Retrieving Buienradar data from {url}");
println!("▶️ Retrieving Buienradar data from: {url}");
let response = reqwest::get(url).await.ok()?;
let output = match response.error_for_status() {
Ok(res) => res.text().await.ok()?,

View File

@ -69,7 +69,7 @@ pub(crate) async fn get(lat: f64, lon: f64, metric: Metric) -> Option<Vec<Item>>
.append_pair("latitude", &format!("{:.05}", lat))
.append_pair("longitude", &format!("{:.05}", lon));
println!("▶️ Retrieving Luchtmeetnet data from {url}");
println!("▶️ Retrieving Luchtmeetnet data from: {url}");
let response = reqwest::get(url).await.ok()?;
let root: Container = match response.error_for_status() {
Ok(res) => res.json().await.ok()?,