Skip to content

Commit

Permalink
fix some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu committed Jan 31, 2025
1 parent b024343 commit 68939d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion satrs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
description = "A framework to build software for remote systems"
homepage = "https://absatsw.irs.uni-stuttgart.de/projects/sat-rs/"
Expand Down
4 changes: 2 additions & 2 deletions satrs/src/subsystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down Expand Up @@ -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)
}
}

Expand Down

0 comments on commit 68939d3

Please sign in to comment.