Fix clippy warnings

This commit is contained in:
rishflab 2020-10-08 16:18:34 +11:00
parent 697e1195cd
commit 6b7193b974
3 changed files with 8 additions and 22 deletions

View file

@ -126,18 +126,12 @@ impl_from_child_state!(State5);
// TODO: use macro or generics
pub fn is_state5(state: &State) -> bool {
match state {
State::State5 { .. } => true,
_ => false,
}
matches!(state, State::State5 { .. })
}
// TODO: use macro or generics
pub fn is_state3(state: &State) -> bool {
match state {
State::State3 { .. } => true,
_ => false,
}
matches!(state, State::State3 { .. })
}
#[derive(Debug)]