clippy fixed

This commit is contained in:
2026-05-30 20:59:38 +02:00
parent a2abc99275
commit 95281d617f
4 changed files with 5 additions and 13 deletions

View File

@@ -287,7 +287,7 @@ impl PlantState {
/// - Tuple of errors from sensor A and B
/// - Sensor warning indicating if warning LED should be lit (MissingSecondSensor)
pub fn plant_moisture_with_warning(&self, plant_conf: &PlantConfig) -> Option<f32> {
let moisture = match (
match (
self.sensor_a.moisture_percent(),
self.sensor_b.moisture_percent(),
) {
@@ -299,9 +299,7 @@ impl PlantState {
(Some(moisture), _) => Some(moisture),
(_, Some(moisture)) => Some(moisture),
_ => None,
};
moisture
}
}
pub fn needs_to_be_watered(