From 237df028f3482863a77a49df4197675ca1f9dd4d Mon Sep 17 00:00:00 2001 From: Scott Teal Date: Sun, 9 Jun 2024 10:54:22 -0400 Subject: [PATCH] Formatting --- src/blocks/weather.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blocks/weather.rs b/src/blocks/weather.rs index bde9ec38e4..5373ca0d8e 100644 --- a/src/blocks/weather.rs +++ b/src/blocks/weather.rs @@ -137,8 +137,8 @@ use crate::formatting::Format; use super::prelude::*; pub mod met_no; -pub mod open_weather_map; pub mod nws; +pub mod open_weather_map; const IP_API_URL: &str = "https://ipapi.co/json"; @@ -321,10 +321,10 @@ pub async fn run(config: &Config, api: &CommonApi) -> Result<()> { WeatherService::MetNo(service_config) => Box::new(met_no::Service::new(service_config)?), WeatherService::OpenWeatherMap(service_config) => { Box::new(open_weather_map::Service::new(config.autolocate, service_config).await?) - }, + } WeatherService::Nws(service_config) => { Box::new(nws::Service::new(config.autolocate, service_config).await?) - }, + } }; let autolocate_interval = config.autolocate_interval.unwrap_or(config.interval);