9951 clippy errors in the test suite (#10030)

automerge
This commit is contained in:
Kristofer Peterson
2020-05-15 17:35:43 +01:00
committed by GitHub
parent 1da1667920
commit 58ef02f02b
106 changed files with 713 additions and 827 deletions

View File

@ -211,7 +211,7 @@ fn test_stake_account_lifetime() {
if let StakeState::Stake(_meta, stake) = stake_state {
assert_eq!(stake.delegation.stake, 1_000_000);
} else {
assert!(false, "wrong account type found")
panic!("wrong account type found")
}
// Test that we cannot withdraw anything until deactivation
@ -235,7 +235,7 @@ fn test_stake_account_lifetime() {
if let StakeState::Stake(_meta, stake) = stake_state {
assert_eq!(stake.delegation.stake, 1_000_000);
} else {
assert!(false, "wrong account type found")
panic!("wrong account type found")
}
loop {
@ -453,6 +453,6 @@ fn test_create_stake_account_from_seed() {
if let StakeState::Stake(_meta, stake) = stake_state {
assert_eq!(stake.delegation.stake, 1_000_000);
} else {
assert!(false, "wrong account type found")
panic!("wrong account type found")
}
}