From 8027e64b2a870d5bb0ee816ad8d903b9f2c56e14 Mon Sep 17 00:00:00 2001 From: HirschBerge Date: Thu, 11 May 2023 21:22:03 -0400 Subject: [PATCH] :) --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 47138d5..0781ce4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -80,7 +80,8 @@ fn get_emoji(main: &str) -> &str { "Snow" => "❄️", "Clear" => "☀️", "Clouds" => "☁️", - _ => "🌫️", + "Mist" | "Smoke" | "Haze" | "Dust" | "Fog" | "Sand" | "Ash" | "Squall" | "Tornado" => "🌫️", + _ => "", } } @@ -151,6 +152,7 @@ async fn main() -> Result<(), Box> { if matches.is_present("forecast") { let resp_forecast = get_forecast_weather(&forecast_url).await?; print_forecast_weather(&resp_forecast, &resp.name); + println!("\n") } Ok(())