diff --git a/crates/number/src/nonzero.rs b/crates/number/src/nonzero.rs index 42303d6c1b..35538cdefb 100644 --- a/crates/number/src/nonzero.rs +++ b/crates/number/src/nonzero.rs @@ -52,9 +52,9 @@ impl Default for U256 { } } -impl Into for U256 { - fn into(self) -> ZeroU256 { - self.0 +impl From for ZeroU256 { + fn from(val: U256) -> Self { + val.0 } }