@@ -65,11 +65,17 @@ impl fmt::Debug for Nip46Request {
6565 Self :: Nip04Encrypt ( p) => write ! ( f, "Nip04Encrypt([{} params])" , p. len( ) ) ,
6666 Self :: Nip04Decrypt ( p) => write ! ( f, "Nip04Decrypt([{} params])" , p. len( ) ) ,
6767 Self :: HeartwoodDerive ( p) => write ! ( f, "HeartwoodDerive([{} params])" , p. len( ) ) ,
68- Self :: HeartwoodDerivePersona ( p) => write ! ( f, "HeartwoodDerivePersona([{} params])" , p. len( ) ) ,
68+ Self :: HeartwoodDerivePersona ( p) => {
69+ write ! ( f, "HeartwoodDerivePersona([{} params])" , p. len( ) )
70+ }
6971 Self :: HeartwoodListIdentities => write ! ( f, "HeartwoodListIdentities" ) ,
7072 Self :: HeartwoodSwitch ( p) => write ! ( f, "HeartwoodSwitch([{} params])" , p. len( ) ) ,
71- Self :: HeartwoodCreateProof ( p) => write ! ( f, "HeartwoodCreateProof([{} params])" , p. len( ) ) ,
72- Self :: HeartwoodVerifyProof ( p) => write ! ( f, "HeartwoodVerifyProof([{} params])" , p. len( ) ) ,
73+ Self :: HeartwoodCreateProof ( p) => {
74+ write ! ( f, "HeartwoodCreateProof([{} params])" , p. len( ) )
75+ }
76+ Self :: HeartwoodVerifyProof ( p) => {
77+ write ! ( f, "HeartwoodVerifyProof([{} params])" , p. len( ) )
78+ }
7379 Self :: HeartwoodRecover ( p) => write ! ( f, "HeartwoodRecover([{} params])" , p. len( ) ) ,
7480 }
7581 }
@@ -122,7 +128,11 @@ impl Nip46Response {
122128 pub fn ok ( id : impl Into < String > , result : serde_json:: Value ) -> Self {
123129 let id = id. into ( ) ;
124130 if contains_nsec ( & result) {
125- return Self { id, result : None , error : Some ( "response contained secret key material" . into ( ) ) } ;
131+ return Self {
132+ id,
133+ result : None ,
134+ error : Some ( "response contained secret key material" . into ( ) ) ,
135+ } ;
126136 }
127137 Self { id, result : Some ( result) , error : None }
128138 }
0 commit comments