Skip to content

Commit

Permalink
Specify explicit PayloadError::source() variants
Browse files Browse the repository at this point in the history
A `_ => None` catchall could cause new error variants to be overlooked.
  • Loading branch information
DanGould committed Jan 16, 2025
1 parent 8bc8927 commit bfd6f98
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion payjoin/src/receive/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,10 @@ impl std::error::Error for PayloadError {
InputWeight(e) => Some(e),
PsbtBelowFeeRate(_, _) => None,
FeeTooHigh(_, _) => None,
_ => None,
MissingPayment => None,
OriginalPsbtNotBroadcastable => None,
InputOwned(_) => None,
InputSeen(_) => None,
}
}
}
Expand Down

0 comments on commit bfd6f98

Please sign in to comment.