Skip to content

Commit 1a188d5

Browse files
committed
f - Derive missing trait implementations
1 parent 030e531 commit 1a188d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning-invoice/src/payment.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,11 @@ pub trait Router {
157157
}
158158

159159
/// Number of attempts to retry payment path failures for an [`Invoice`].
160+
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
160161
pub struct RetryAttempts(pub usize);
161162

162163
/// An error that may occur when making a payment.
163-
#[derive(Debug)]
164+
#[derive(Clone, Debug)]
164165
pub enum PaymentError {
165166
/// An error resulting from the provided [`Invoice`] or payment hash.
166167
Invoice(&'static str),

0 commit comments

Comments
 (0)