mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-20 14:28:37 +00:00
Fix arithmetic lint in committee_cache (saturating_sub)
This commit is contained in:
@@ -332,7 +332,7 @@ impl CommitteeCache {
|
||||
self.shuffling_positions
|
||||
.get(validator_index)?
|
||||
.0
|
||||
.map(|p| p.get() - 1)
|
||||
.map(|p| p.get().saturating_sub(1))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user