From 8ac8c91d719bce84be7be2000addce5452d5f2e6 Mon Sep 17 00:00:00 2001 From: Daniel Thompson-Yvetot Date: Mon, 19 Apr 2021 14:48:46 +0200 Subject: [PATCH 1/2] hotfix(ignore) Signed-off-by: Daniel Thompson-Yvetot --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) 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 From 45a3b448a9351173559d9825698a7658e90054bd Mon Sep 17 00:00:00 2001 From: Daniel Thompson-Yvetot Date: Mon, 19 Apr 2021 14:48:58 +0200 Subject: [PATCH 2/2] 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() } }