From 4f4d15e4a42ed39e7f3aa327c2e76cf39eba9e06 Mon Sep 17 00:00:00 2001 From: Empire Phoenix Date: Mon, 19 May 2025 12:16:18 +0200 Subject: [PATCH] fix is_enabled being inverted --- rust/src/tank.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/src/tank.rs b/rust/src/tank.rs index 6f77ac0..f7c77a2 100644 --- a/rust/src/tank.rs +++ b/rust/src/tank.rs @@ -80,7 +80,7 @@ impl TankState { } pub fn is_enabled(&self) -> bool { - matches!(self, TankState::Disabled) + !matches!(self, TankState::Disabled) } pub fn warn_level(&self, config: &TankConfig) -> Result {