diff --git a/src/testing/tests.rs b/src/testing/tests.rs index 96e5bf4..4488f00 100644 --- a/src/testing/tests.rs +++ b/src/testing/tests.rs @@ -604,12 +604,9 @@ mod tests { Err(StdError::GenericErr { msg, backtrace: None, - }) => { - assert_eq!(msg, "Wait for the unbonding period"); - } - _ => { - panic!("Unexpected error") - } + }) => assert_eq!(msg, "Wait for the unbonding period"), + + _ => panic!("Unexpected error"), } let msg = HandleMsg::WithdrawStake {