mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-21 05:44:44 +00:00
Replace assert! with assert_ne! (#1140)
This commit is contained in:
@@ -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"
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user