mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-27 11:10:31 -05:00
Fix clippy warnings
This commit is contained in:
parent
697e1195cd
commit
6b7193b974
3 changed files with 8 additions and 22 deletions
|
|
@ -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)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue