Skip to content

Commit

Permalink
🐛 fix historical weather requests (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm authored Oct 8, 2024
1 parent 427dd71 commit 52e9f67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/weather.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use super::units::{Precipitation, Units};
#[optional_struct]
#[derive(Deserialize, Debug)]
pub struct Weather {
#[optional_rename(OptionalCurrentWeather)]
pub current_weather: CurrentWeather,
#[optional_rename(OptionalHourlyUnits)]
pub hourly_units: HourlyUnits,
Expand All @@ -24,7 +23,7 @@ pub struct Weather {
}

#[optional_struct]
#[derive(Deserialize, Debug)]
#[derive(Deserialize, Debug, Clone, PartialEq)]
pub struct CurrentWeather {
pub temperature: f32,
pub windspeed: f32,
Expand Down

0 comments on commit 52e9f67

Please sign in to comment.