From 99c9a1d09f445b39e0f24de4bc4cab7930d39e83 Mon Sep 17 00:00:00 2001 From: Felix Suchert Date: Mon, 27 Mar 2023 19:11:46 +0200 Subject: [PATCH] fix: apparently precipitation is a float --- src/weather/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/weather/data.rs b/src/weather/data.rs index 170a0d8..3d189b4 100644 --- a/src/weather/data.rs +++ b/src/weather/data.rs @@ -145,7 +145,7 @@ pub struct WeatherAlert { pub struct Precipitation { /// Precipitation volume in the last hour in mm #[serde(rename = "1h")] - pub(self) hour: u16, + pub(self) hour: f32, } #[derive(Deserialize)]