Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Cognoscan committed Jun 9, 2024
1 parent cfcf3c6 commit 237df02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blocks/weather.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 237df02

Please sign in to comment.