diff --git a/sdk/keccak-hasher/src/lib.rs b/sdk/keccak-hasher/src/lib.rs index d023523c84a271..5c2ec004ead454 100644 --- a/sdk/keccak-hasher/src/lib.rs +++ b/sdk/keccak-hasher/src/lib.rs @@ -60,9 +60,9 @@ impl From for Hash { } } -impl Into for Hash { - fn into(self) -> solana_hash::Hash { - solana_hash::Hash::new_from_array(self.0) +impl From for solana_hash::Hash { + fn from(val: Hash) -> Self { + Self::new_from_array(val.0) } }