Skip to content

Commit

Permalink
fix msrv
Browse files Browse the repository at this point in the history
  • Loading branch information
willowens14 authored and DanGould committed Aug 7, 2023
1 parent 0c00b9a commit b6f12d8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions payjoin/src/send/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ impl fmt::Display for ValidationError {
use InternalValidationError::*;

match &self.internal {
Psbt(e) => write!(f, "couldn't decode PSBT: {e:#?}"),
Io(e) => write!(f, "couldn't read PSBT: {e:#?}"),
InvalidInputType(e) => write!(f, "invalid transaction input type: {e:#?}"),
InvalidProposedInput(e) => write!(f, "invalid proposed transaction input: {e:#?}"),
Psbt(e) => write!(f, "couldn't decode PSBT: {}", e),
Io(e) => write!(f, "couldn't read PSBT: {}", e),
InvalidInputType(e) => write!(f, "invalid transaction input type: {}", e),
InvalidProposedInput(e) => write!(f, "invalid proposed transaction input: {}", e),
VersionsDontMatch { proposed, original, } => write!(f, "proposed transaction version {} doesn't match the original {}", proposed, original),
LockTimesDontMatch { proposed, original, } => write!(f, "proposed transaction lock time {} doesn't match the original {}", proposed, original),
SenderTxinSequenceChanged { proposed, original, } => write!(f, "proposed transaction sequence number {} doesn't match the original {}", proposed, original),
Expand Down Expand Up @@ -156,8 +156,8 @@ impl fmt::Display for CreateRequestError {
use InternalCreateRequestError::*;

match &self.0 {
InvalidOriginalInput(e) => write!(f, "an input in the original transaction is invalid: {e:#?}"),
InconsistentOriginalPsbt(e) => write!(f, "the original transaction is inconsistent: {e:#?}"),
InvalidOriginalInput(e) => write!(f, "an input in the original transaction is invalid: {:#?}", e),
InconsistentOriginalPsbt(e) => write!(f, "the original transaction is inconsistent: {:#?}", e),
NoInputs => write!(f, "the original transaction has no inputs"),
PayeeValueNotEqual => write!(f, "the value in original transaction doesn't equal value requested in the payment link"),
NoOutputs => write!(f, "the original transaction has no outputs"),
Expand All @@ -167,7 +167,7 @@ impl fmt::Display for CreateRequestError {
AmbiguousChangeOutput => write!(f, "can not determine which output is change because there's more than two outputs"),
ChangeIndexOutOfBounds => write!(f, "fee output index is points out of bounds"),
ChangeIndexPointsAtPayee => write!(f, "fee output index is points at output belonging to the payee"),
Url(e) => write!(f, "cannot parse endpoint url: {e:#?}"),
Url(e) => write!(f, "cannot parse endpoint url: {:#?}", e),
}
}
}
Expand Down

0 comments on commit b6f12d8

Please sign in to comment.