From cc1ea2e4ae4d464248600d5a29f98e0cebd18f10 Mon Sep 17 00:00:00 2001 From: Felix Leupold Date: Mon, 4 Sep 2023 11:32:48 +0200 Subject: [PATCH] clippy --- crates/number/src/nonzero.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 } }