Skip to content

Commit

Permalink
:)
Browse files Browse the repository at this point in the history
  • Loading branch information
HirschBerge committed May 12, 2023
1 parent e2f6eee commit 8027e64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ fn get_emoji(main: &str) -> &str {
"Snow" => "❄️",
"Clear" => "☀️",
"Clouds" => "☁️",
_ => "🌫️",
"Mist" | "Smoke" | "Haze" | "Dust" | "Fog" | "Sand" | "Ash" | "Squall" | "Tornado" => "🌫️",
_ => "",
}
}

Expand Down Expand Up @@ -151,6 +152,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
if matches.is_present("forecast") {
let resp_forecast = get_forecast_weather(&forecast_url).await?;
print_forecast_weather(&resp_forecast, &resp.name);
println!("\n")
}

Ok(())
Expand Down

0 comments on commit 8027e64

Please sign in to comment.