Skip to content

Commit f001722

Browse files
committed
Make WellKnownError non_exhaustive
It's unclear whether or not there will be other protocol error variants for fee negotiation.
1 parent c46decf commit f001722

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

payjoin/src/send/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ impl fmt::Debug for ResponseError {
364364
}
365365

366366
#[derive(Debug, Clone, PartialEq, Eq)]
367+
#[non_exhaustive]
367368
pub enum WellKnownError {
368369
Unavailable(String),
369370
NotEnoughMoney(String),

0 commit comments

Comments
 (0)