chore: satisfy clippy

This commit is contained in:
2021-09-20 04:15:05 -03:00
parent ce121864d2
commit 71ce3f43e0
2 changed files with 3 additions and 6 deletions

View File

@@ -57,10 +57,7 @@ impl Cpu {
}
pub(crate) fn is_halted(&self) -> bool {
match self.state {
State::Halt(_) => true,
_ => false,
}
matches!(self.state, State::Halt(_))
}
pub(crate) fn halt_kind(&self) -> Option<HaltKind> {