parity-common
parity-common copied to clipboard
From<i64> impl is invalid
This implementation is invalid: https://github.com/paritytech/parity-common/blob/a5ef7308d6986e62431e35d3156fed0a7a585d39/uint/src/uint.rs#L1349-L1356
As per the docs on From
:
Note: This trait must not fail. The From trait is intended for perfect conversions. If the conversion can fail or is not perfect, use TryFrom.