File tree Expand file tree Collapse file tree 3 files changed +15
-29
lines changed Expand file tree Collapse file tree 3 files changed +15
-29
lines changed Original file line number Diff line number Diff line change @@ -145,22 +145,18 @@ impl fmt::Display for Error {
145145 }
146146 Error :: IncorrectWScriptHash => f. write_str ( "witness script did not match scriptpubkey" ) ,
147147 Error :: InsufficientSignaturesMultiSig => f. write_str ( "Insufficient signatures for CMS" ) ,
148- Error :: InvalidSchnorrSighashType ( ref sig) => {
149- write ! (
150- f,
151- "Invalid sighash type for schnorr signature '{}'" ,
152- sig. to_hex( )
153- )
154- }
148+ Error :: InvalidSchnorrSighashType ( ref sig) => write ! (
149+ f,
150+ "Invalid sighash type for schnorr signature '{}'" ,
151+ sig. to_hex( )
152+ ) ,
155153 Error :: InvalidEcdsaSignature ( pk) => write ! ( f, "bad ecdsa signature with pk {}" , pk) ,
156154 Error :: InvalidSchnorrSignature ( pk) => write ! ( f, "bad schnorr signature with pk {}" , pk) ,
157- Error :: NonStandardSighash ( ref sig) => {
158- write ! (
159- f,
160- "Non standard sighash type for signature '{}'" ,
161- sig. to_hex( )
162- )
163- }
155+ Error :: NonStandardSighash ( ref sig) => write ! (
156+ f,
157+ "Non standard sighash type for signature '{}'" ,
158+ sig. to_hex( )
159+ ) ,
164160 Error :: NonEmptyWitness => f. write_str ( "legacy spend had nonempty witness" ) ,
165161 Error :: NonEmptyScriptSig => f. write_str ( "segwit spend had nonempty scriptsig" ) ,
166162 Error :: Miniscript ( ref e) => write ! ( f, "parse error: {}" , e) ,
Original file line number Diff line number Diff line change @@ -658,18 +658,10 @@ impl fmt::Display for Error {
658658 Error :: PubKeyCtxError ( ref pk, ref ctx) => {
659659 write ! ( f, "Pubkey error: {} under {} scriptcontext" , pk, ctx)
660660 }
661- Error :: MultiATooManyKeys ( k) => {
662- write ! ( f, "MultiA too many keys {}" , k)
663- }
664- Error :: TaprootSpendInfoUnavialable => {
665- write ! ( f, "Taproot Spend Info not computed." )
666- }
667- Error :: TrNoScriptCode => {
668- write ! ( f, "No script code for Tr descriptors" )
669- }
670- Error :: TrNoExplicitScript => {
671- write ! ( f, "No script code for Tr descriptors" )
672- }
661+ Error :: MultiATooManyKeys ( k) => write ! ( f, "MultiA too many keys {}" , k) ,
662+ Error :: TaprootSpendInfoUnavialable => write ! ( f, "Taproot Spend Info not computed." ) ,
663+ Error :: TrNoScriptCode => write ! ( f, "No script code for Tr descriptors" ) ,
664+ Error :: TrNoExplicitScript => write ! ( f, "No script code for Tr descriptors" ) ,
673665 }
674666 }
675667}
Original file line number Diff line number Diff line change @@ -238,9 +238,7 @@ impl fmt::Display for InputError {
238238 sighashflag {:?} rather than required {:?}",
239239 pubkey, got, required
240240 ) ,
241- InputError :: CouldNotSatisfyTr => {
242- write ! ( f, "Could not satisfy Tr descriptor" )
243- }
241+ InputError :: CouldNotSatisfyTr => write ! ( f, "Could not satisfy Tr descriptor" ) ,
244242 InputError :: NonStandardSighashType ( e) => write ! ( f, "Non-standard sighash type {}" , e) ,
245243 }
246244 }
You can’t perform that action at this time.
0 commit comments