From 45a3b448a9351173559d9825698a7658e90054bd Mon Sep 17 00:00:00 2001 From: Daniel Thompson-Yvetot Date: Mon, 19 Apr 2021 14:48:58 +0200 Subject: [PATCH] hotfix(clippy) Signed-off-by: Daniel Thompson-Yvetot --- src/keys/slip10.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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() } }