Add support to Zim (#545)

This commit is contained in:
Eric Nielsen
2020-10-24 14:46:38 -05:00
committed by GitHub
parent 3a34672ee5
commit 7783fc77ba
4 changed files with 23 additions and 8 deletions

View File

@@ -20,10 +20,7 @@ enum BoxStatus {
impl BoxStatus {
fn powered_on(self) -> bool {
match self {
BoxStatus::Running => true,
_ => false,
}
matches!(self, BoxStatus::Running)
}
}