[style](trx-frontend-http): fix clippy::manual_range_contains in scheduler

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
2026-03-10 23:28:20 +01:00
parent 877573c905
commit f1d412a566
@@ -214,7 +214,7 @@ fn sunrise_sunset_today(lat_deg: f64, lon_deg: f64) -> Option<(f64, f64)> {
/ (lat_rad.cos() * decl.cos())
- lat_rad.tan() * decl.tan();
if cos_ha < -1.0 || cos_ha > 1.0 {
if !(-1.0..=1.0).contains(&cos_ha) {
return None; // Polar day or polar night.
}