@@ -36,15 +36,14 @@ pub mod send_with_proposal {
3636
3737 use zcash_primitives:: transaction:: { Transaction , TxId } ;
3838
39- use thiserror:: Error ;
4039 use zingo_status:: confirmation_status:: ConfirmationStatus ;
4140
4241 use crate :: lightclient:: LightClient ;
4342 use crate :: wallet:: now;
4443 use crate :: wallet:: propose:: { ProposeSendError , ProposeShieldError } ;
4544
4645 #[ allow( missing_docs) ] // error types document themselves
47- #[ derive( Clone , Debug , Error ) ]
46+ #[ derive( Clone , Debug , thiserror :: Error ) ]
4847 pub enum TransactionCacheError {
4948 #[ error( "No witness trees. This is viewkey watch, not spendkey wallet." ) ]
5049 NoSpendCapability ,
@@ -55,7 +54,7 @@ pub mod send_with_proposal {
5554 }
5655
5756 #[ allow( missing_docs) ] // error types document themselves
58- #[ derive( Clone , Debug , Error ) ]
57+ #[ derive( Clone , Debug , thiserror :: Error ) ]
5958 pub enum BroadcastCachedTransactionsError {
6059 #[ error( "Cant broadcast: {0:?}" ) ]
6160 Cache ( #[ from] TransactionCacheError ) ,
@@ -66,7 +65,7 @@ pub mod send_with_proposal {
6665 }
6766
6867 #[ allow( missing_docs) ] // error types document themselves
69- #[ derive( Debug , Error ) ]
68+ #[ derive( Debug , thiserror :: Error ) ]
7069 pub enum RecordCachedTransactionsError {
7170 #[ error( "Cant record: {0:?}" ) ]
7271 Cache ( #[ from] TransactionCacheError ) ,
@@ -77,7 +76,7 @@ pub mod send_with_proposal {
7776 }
7877
7978 #[ allow( missing_docs) ] // error types document themselves
80- #[ derive( Debug , Error ) ]
79+ #[ derive( Debug , thiserror :: Error ) ]
8180 pub enum CompleteAndBroadcastError {
8281 #[ error( "The transaction could not be calculated: {0:?}" ) ]
8382 BuildTransaction ( #[ from] crate :: wallet:: send:: BuildTransactionError ) ,
@@ -90,7 +89,7 @@ pub mod send_with_proposal {
9089 }
9190
9291 #[ allow( missing_docs) ] // error types document themselves
93- #[ derive( Debug , Error ) ]
92+ #[ derive( Debug , thiserror :: Error ) ]
9493 pub enum CompleteAndBroadcastStoredProposalError {
9594 #[ error( "No proposal. Call do_propose first." ) ]
9695 NoStoredProposal ,
@@ -99,7 +98,7 @@ pub mod send_with_proposal {
9998 }
10099
101100 #[ allow( missing_docs) ] // error types document themselves
102- #[ derive( Debug , Error ) ]
101+ #[ derive( Debug , thiserror :: Error ) ]
103102 pub enum QuickSendError {
104103 #[ error( "propose send {0:?}" ) ]
105104 ProposeSend ( #[ from] ProposeSendError ) ,
@@ -108,7 +107,7 @@ pub mod send_with_proposal {
108107 }
109108
110109 #[ allow( missing_docs) ] // error types document themselves
111- #[ derive( Debug , Error ) ]
110+ #[ derive( Debug , thiserror :: Error ) ]
112111 pub enum QuickShieldError {
113112 #[ error( "propose shield {0:?}" ) ]
114113 Propose ( #[ from] ProposeShieldError ) ,
0 commit comments