diff options
author | Adam <56338480+adastx@users.noreply.github.com> | 2022-07-27 16:04:56 +0200 |
---|---|---|
committer | Adam <56338480+adastx@users.noreply.github.com> | 2022-07-27 16:04:56 +0200 |
commit | 9f4bd32ba37ef9cb38831b39d37ca854cd1bda4d (patch) | |
tree | 32392e18e0eeb4e7c0a60e305c9a56e98688114a /src | |
parent | 5406651b29e3db786f31588e4fe91a8a40bf195f (diff) |
No hardcoded padding
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 7 |
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) { |