@@ -835,7 +835,6 @@ serde_string_impl_pk!(Descriptor, "a script descriptor");
835
835
836
836
#[ cfg( test) ]
837
837
mod tests {
838
- use core:: cmp;
839
838
use core:: str:: FromStr ;
840
839
841
840
use bitcoin:: blockdata:: opcodes:: all:: { OP_CLTV , OP_CSV } ;
@@ -850,7 +849,7 @@ mod tests {
850
849
use super :: tr:: Tr ;
851
850
use super :: * ;
852
851
use crate :: descriptor:: key:: Wildcard ;
853
- use crate :: descriptor:: { DescriptorPublicKey , DescriptorSecretKey , DescriptorXKey , SinglePub } ;
852
+ use crate :: descriptor:: { DescriptorPublicKey , DescriptorXKey , SinglePub } ;
854
853
#[ cfg( feature = "compiler" ) ]
855
854
use crate :: policy;
856
855
use crate :: { hex_script, Descriptor , DummyKey , Error , Miniscript , Satisfier } ;
@@ -859,23 +858,6 @@ mod tests {
859
858
const TEST_PK : & ' static str =
860
859
"pk(020000000000000000000000000000000000000000000000000000000000000002)" ;
861
860
862
- impl cmp:: PartialEq for DescriptorSecretKey {
863
- fn eq ( & self , other : & Self ) -> bool {
864
- match ( self , other) {
865
- ( & DescriptorSecretKey :: Single ( ref a) , & DescriptorSecretKey :: Single ( ref b) ) => {
866
- a. origin == b. origin && a. key == b. key
867
- }
868
- ( & DescriptorSecretKey :: XPrv ( ref a) , & DescriptorSecretKey :: XPrv ( ref b) ) => {
869
- a. origin == b. origin
870
- && a. xkey == b. xkey
871
- && a. derivation_path == b. derivation_path
872
- && a. wildcard == b. wildcard
873
- }
874
- _ => false ,
875
- }
876
- }
877
- }
878
-
879
861
fn roundtrip_descriptor ( s : & str ) {
880
862
let desc = Descriptor :: < DummyKey > :: from_str ( & s) . unwrap ( ) ;
881
863
let output = desc. to_string ( ) ;
0 commit comments