diff --git a/satrs/Cargo.toml b/satrs/Cargo.toml index 36925d7..9f4a6dc 100644 --- a/satrs/Cargo.toml +++ b/satrs/Cargo.toml @@ -2,7 +2,7 @@ name = "satrs" version = "0.2.1" edition = "2021" -rust-version = "1.71.1" +rust-version = "1.82.0" authors = ["Robin Mueller "] description = "A framework to build software for remote systems" homepage = "https://absatsw.irs.uni-stuttgart.de/projects/sat-rs/" diff --git a/satrs/src/subsystem.rs b/satrs/src/subsystem.rs index b1235f4..0212f76 100644 --- a/satrs/src/subsystem.rs +++ b/satrs/src/subsystem.rs @@ -81,7 +81,7 @@ where { fn is_commandable(&self, id: ComponentId) -> bool { self.health(id) - .is_some_and(|h| h != HealthState::ExternalControl) + .is_none_or(|h| h != HealthState::ExternalControl) } } @@ -717,7 +717,7 @@ mod tests { impl IsChildCommandable for IsCommandableMock { fn is_commandable(&self, id: ComponentId) -> bool { - self.commandable_map.get(&id).copied().unwrap_or(false) + self.commandable_map.get(&id).copied().unwrap_or(true) } }