fix is_enabled being inverted
This commit is contained in:
parent
9f48b46738
commit
4f4d15e4a4
@ -80,7 +80,7 @@ impl TankState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn is_enabled(&self) -> bool {
|
pub fn is_enabled(&self) -> bool {
|
||||||
matches!(self, TankState::Disabled)
|
!matches!(self, TankState::Disabled)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn warn_level(&self, config: &TankConfig) -> Result<bool, TankError> {
|
pub fn warn_level(&self, config: &TankConfig) -> Result<bool, TankError> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user