fix some tests

This commit is contained in:
Robin Müller 2025-01-31 12:35:40 +01:00
parent b024343e17
commit 68939d3699
Signed by: muellerr
GPG Key ID: A649FB78196E3849
2 changed files with 3 additions and 3 deletions

View File

@ -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 <muellerr@irs.uni-stuttgart.de>"]
description = "A framework to build software for remote systems"
homepage = "https://absatsw.irs.uni-stuttgart.de/projects/sat-rs/"

View File

@ -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)
}
}