diff --git a/Cargo.toml b/Cargo.toml index b9191a0d..ba2f31df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ categories = [ "security" ] description = "The canonical source of cryptographic ground-truth for all IOTA Rust projects" homepage = "https://iota.org" repository = "https://github.com/iotaledger/crypto.rs" +exclude = ["/tests", "/bindings", "/.github", "/.changes"] [package.metadata.docs.rs] all-features = true 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() } }