summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs
index 402b7c5..f63816b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -12,17 +12,14 @@ struct WeatherInfo {
fn main() {
let data = request_weather(setup());
if data.is_err() {
- println!(" ??°C ");
+ println!("??°C");
return;
}
let (a, b) = parse_weather(data.unwrap());
let trend = get_trend_icon(a.temp, b.temp);
- println!(
- " {} {}°C {} {} {}°C ",
- a.icon, a.temp, trend, b.icon, b.temp
- );
+ println!("{} {}°C {} {} {}°C", a.icon, a.temp, trend, b.icon, b.temp);
}
fn setup() -> (String, String) {