From da3c35aa7498865d749951f927ae90ab14942aa2 Mon Sep 17 00:00:00 2001 From: 0xantman Date: Sat, 24 Apr 2021 18:59:57 +0200 Subject: [PATCH] format fix --- src/testing/tests.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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 {