From d282ea0eca1ff5f29ad81c7da6a9817b4a1ad568 Mon Sep 17 00:00:00 2001 From: Jean-Pierre De Jesus DIAZ Date: Wed, 17 Jul 2024 15:34:02 +0200 Subject: [PATCH] fixup! SFT-3839: Add HDKey owned version. --- urtypes/fuzz/fuzz_targets/hdkey_decode.rs | 4 ++-- urtypes/src/registry/hdkey.rs | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/urtypes/fuzz/fuzz_targets/hdkey_decode.rs b/urtypes/fuzz/fuzz_targets/hdkey_decode.rs index 82ee81c..7b9eaf0 100644 --- a/urtypes/fuzz/fuzz_targets/hdkey_decode.rs +++ b/urtypes/fuzz/fuzz_targets/hdkey_decode.rs @@ -3,9 +3,9 @@ #![no_main] -use foundation_urtypes::registry::HDKey; +use foundation_urtypes::registry::HDKeyRef; use libfuzzer_sys::fuzz_target; fuzz_target!(|data: &[u8]| { - minicbor::decode::<'_, HDKey>(data).ok(); + minicbor::decode::<'_, HDKeyRef>(data).ok(); }); diff --git a/urtypes/src/registry/hdkey.rs b/urtypes/src/registry/hdkey.rs index d461eed..6899580 100644 --- a/urtypes/src/registry/hdkey.rs +++ b/urtypes/src/registry/hdkey.rs @@ -10,9 +10,9 @@ use minicbor::{ Encode, Encoder, }; -use crate::registry::{CoinInfo, KeypathRef}; #[cfg(feature = "alloc")] use crate::registry::Keypath; +use crate::registry::{CoinInfo, KeypathRef}; /// HD Key (non owned, zero copy). #[doc(alias("hd-key"))] @@ -142,7 +142,6 @@ pub enum HDKey { DerivedKey(DerivedKey), } - #[cfg(feature = "alloc")] impl<'a> From> for HDKey { fn from(hdkey: HDKeyRef<'a>) -> Self {