Skip to content

Commit

Permalink
hotfix(clippy)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Thompson-Yvetot <[email protected]>
  • Loading branch information
nothingismagick committed Apr 19, 2021
1 parent 8ac8c91 commit 45a3b44
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/keys/slip10.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down Expand Up @@ -170,8 +172,8 @@ impl AsRef<Chain> for Chain {
}
}

impl From<[u8; 64]> for Key {
fn from(v: [u8; 64]) -> Key {
Key(v)
impl Into<Vec<u8>> for Key {
fn into(self) -> Vec<u8> {
self.0.to_vec()
}
}

0 comments on commit 45a3b44

Please sign in to comment.