@@ -25,7 +25,6 @@ use core::default::Default;
2525use core:: fmt;
2626use core:: ops:: Index ;
2727use core:: str:: FromStr ;
28- #[ cfg( feature = "std" ) ]
2928use std:: error;
3029
3130use dashcore_hashes:: { hash160, sha512, Hash , HashEngine , Hmac , HmacEngine } ;
@@ -42,7 +41,6 @@ use crate::dip9::{
4241 IDENTITY_REGISTRATION_PATH_MAINNET , IDENTITY_REGISTRATION_PATH_TESTNET ,
4342 IDENTITY_TOPUP_PATH_MAINNET , IDENTITY_TOPUP_PATH_TESTNET ,
4443} ;
45- use alloc:: { string:: String , vec:: Vec } ;
4644use base58ck;
4745#[ cfg( feature = "bincode" ) ]
4846use bincode_derive:: { Decode , Encode } ;
@@ -343,7 +341,6 @@ impl<'de> serde::Deserialize<'de> for Fingerprint {
343341
344342/// Extended private key
345343#[ derive( Copy , Clone , PartialEq , Eq ) ]
346- #[ cfg_attr( feature = "std" , derive( Debug ) ) ]
347344pub struct ExtendedPrivKey {
348345 /// The network this key is to be used on
349346 pub network : Network ,
@@ -451,8 +448,6 @@ impl<'de> serde::Deserialize<'de> for ExtendedPrivKey {
451448 }
452449}
453450
454- #[ cfg( not( feature = "std" ) ) ]
455- #[ cfg_attr( docsrs, doc( cfg( not( feature = "std" ) ) ) ) ]
456451impl fmt:: Debug for ExtendedPrivKey {
457452 fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
458453 f. debug_struct ( "ExtendedPrivKey" )
@@ -1474,7 +1469,6 @@ impl fmt::Display for Error {
14741469 }
14751470}
14761471
1477- #[ cfg( feature = "std" ) ]
14781472impl error:: Error for Error {
14791473 fn cause ( & self ) -> Option < & dyn error:: Error > {
14801474 if let Error :: Secp256k1 ( ref e) = * self {
0 commit comments