diff --git a/client/bin/src/main.rs b/client/bin/src/main.rs index 1fa2072..4692bb8 100644 --- a/client/bin/src/main.rs +++ b/client/bin/src/main.rs @@ -131,6 +131,7 @@ fn render_weather(display: &mut UdpDisplay ,data: &Option { + let mut temp:&f64 = &-1_f64; if !result.list.is_empty() { let mut max:f64 = 0_f64; let mut best = &result.list[0]; @@ -148,6 +149,9 @@ fn render_weather(display: &mut UdpDisplay ,data: &Option { let rain_v = x.three_hours; @@ -159,7 +163,6 @@ fn render_weather(display: &mut UdpDisplay ,data: &Option println!("No rain at {hour}:{minute}"), } - } @@ -168,7 +171,14 @@ fn render_weather(display: &mut UdpDisplay ,data: &Option