[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:
@@ -214,7 +214,7 @@ fn sunrise_sunset_today(lat_deg: f64, lon_deg: f64) -> Option<(f64, f64)> {
|
|||||||
/ (lat_rad.cos() * decl.cos())
|
/ (lat_rad.cos() * decl.cos())
|
||||||
- lat_rad.tan() * decl.tan();
|
- 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.
|
return None; // Polar day or polar night.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user