units: Fix panic message
Recently I wrote a panic message that included the maximum value of an integer however I used the max of a 16 bit value for both signed and unsigned - this is incorrect. Use the correct values for `u16::MAX` and `i16::MAX`.
This commit is contained in:
parent
f7006e3d15
commit
6c614d9320
|
@ -152,7 +152,7 @@ impl SignedAmount {
|
|||
|
||||
match Self::from_sat(sats) {
|
||||
Ok(amount) => amount,
|
||||
Err(_) => panic!("unreachable - 65536 BTC is within range"),
|
||||
Err(_) => panic!("unreachable - 32,767 BTC is within range"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ impl Amount {
|
|||
|
||||
match Self::from_sat(sats) {
|
||||
Ok(amount) => amount,
|
||||
Err(_) => panic!("unreachable - 65536 BTC is within range"),
|
||||
Err(_) => panic!("unreachable - 65,535 BTC is within range"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue