Replace assert! with assert_ne! (#1140)

This commit is contained in:
Akihito Nakano
2020-05-13 16:05:12 +09:00
committed by GitHub
parent 62ff6d9191
commit 637ba8120b
5 changed files with 6 additions and 6 deletions

View File

@@ -382,8 +382,8 @@ fn check_duties<T: BeaconChainTypes>(
let slot_proposer = state
.get_beacon_proposer_index(slot, spec)
.expect("should know proposer");
assert!(
slot_proposer != validator_index,
assert_ne!(
slot_proposer, validator_index,
"validator should not have proposal slot in this epoch"
)
})