File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- use std:: fmt:: { Display , Formatter } ;
1+ use std:: {
2+ error:: Error ,
3+ fmt:: { self , Display , Formatter } ,
4+ } ;
25
36use libbitcoinkernel_sys:: {
47 btck_ScriptVerificationFlags, btck_ScriptVerifyStatus, btck_TransactionOutput,
@@ -181,7 +184,7 @@ pub enum ScriptVerifyError {
181184}
182185
183186impl Display for ScriptVerifyError {
184- fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std :: fmt:: Result {
187+ fn fmt ( & self , f : & mut Formatter < ' _ > ) -> fmt:: Result {
185188 match self {
186189 ScriptVerifyError :: TxInputIndex => write ! ( f, "Transaction input index out of bounds" ) ,
187190 ScriptVerifyError :: InvalidFlags => write ! ( f, "Invalid verification flags" ) ,
@@ -197,7 +200,7 @@ impl Display for ScriptVerifyError {
197200 }
198201}
199202
200- impl std :: error :: Error for ScriptVerifyError { }
203+ impl Error for ScriptVerifyError { }
201204
202205#[ cfg( test) ]
203206mod tests {
You can’t perform that action at this time.
0 commit comments