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 {