fix all warnings

This commit is contained in:
2025-06-20 21:31:12 +02:00
parent d0e5627815
commit 5621f17e61
7 changed files with 16 additions and 28 deletions

View File

@@ -239,7 +239,11 @@ impl PlantState {
}
}
pub fn to_mqtt_info(&self, plant_conf: &PlantConfig, current_time: &DateTime<Tz>) -> PlantInfo {
pub fn to_mqtt_info(
&self,
plant_conf: &PlantConfig,
current_time: &DateTime<Tz>,
) -> PlantInfo<'_> {
PlantInfo {
sensor_a: &self.sensor_a,
sensor_b: &self.sensor_b,