chore: cargo fmt

This commit is contained in:
2025-06-20 16:26:03 +02:00
parent 017078ef8e
commit 4b919b9613
10 changed files with 335 additions and 235 deletions

View File

@@ -114,11 +114,7 @@ impl TankState {
}
}
pub fn as_mqtt_info(
&self,
config: &TankConfig,
water_temp: &anyhow::Result<f32>,
) -> TankInfo {
pub fn as_mqtt_info(&self, config: &TankConfig, water_temp: &anyhow::Result<f32>) -> TankInfo {
let mut tank_err: Option<TankError> = None;
let left_ml = match self.left_ml(config) {
Err(err) => {
@@ -155,9 +151,7 @@ impl TankState {
}
}
pub fn determine_tank_state(
board: &mut std::sync::MutexGuard<'_, HAL<'_>>
) -> TankState {
pub fn determine_tank_state(board: &mut std::sync::MutexGuard<'_, HAL<'_>>) -> TankState {
if board.board_hal.get_config().tank.tank_sensor_enabled {
match board.board_hal.tank_sensor_voltage() {
Ok(raw_sensor_value_mv) => TankState::Present(raw_sensor_value_mv),