diff --git a/src/keys/slip10.rs b/src/keys/slip10.rs index 18c68606..d9b40e9c 100644 --- a/src/keys/slip10.rs +++ b/src/keys/slip10.rs @@ -1,6 +1,8 @@ // Copyright 2020-2021 IOTA Stiftung // SPDX-License-Identifier: Apache-2.0 +#![allow(clippy::from_over_into)] + extern crate alloc; use crate::{macs::hmac::HMAC_SHA512, signatures::ed25519::SecretKey}; @@ -170,8 +172,8 @@ impl AsRef for Chain { } } -impl From<[u8; 64]> for Key { - fn from(v: [u8; 64]) -> Key { - Key(v) +impl Into> for Key { + fn into(self) -> Vec { + self.0.to_vec() } }