From 9f4bd32ba37ef9cb38831b39d37ca854cd1bda4d Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Wed, 27 Jul 2022 16:04:56 +0200 Subject: No hardcoded padding --- src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3-70-g09d2