Skip to content

Commit f1533b0

Browse files
committed
fix(cardano-blockchain-types): use sat_mul for slot
Signed-off-by: bkioshn <[email protected]>
1 parent d90b04f commit f1533b0

File tree

1 file changed

+1
-1
lines changed
  • rust/cardano-blockchain-types/src

1 file changed

+1
-1
lines changed

rust/cardano-blockchain-types/src/slot.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl From<Slot> for u64 {
4545

4646
impl MulAssign<u64> for Slot {
4747
fn mul_assign(&mut self, rhs: u64) {
48-
self.0 *= rhs;
48+
self.0 = self.0.saturating_mul(rhs);
4949
}
5050
}
5151

0 commit comments

Comments
 (0)