Skip to content

Commit 64a3bd6

Browse files
committed
chore: make Bolt11InvoiceDescriptionRef copy
1 parent 797993c commit 64a3bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-invoice/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ impl Display for Bolt11InvoiceDescription {
262262
///
263263
/// This is not exported to bindings users as we don't have a good way to map the reference lifetimes making this
264264
/// practically impossible to use safely in languages like C.
265-
#[derive(Eq, PartialEq, Debug, Clone, Ord, PartialOrd)]
265+
#[derive(Eq, PartialEq, Debug, Clone, Copy, Ord, PartialOrd)]
266266
pub enum Bolt11InvoiceDescriptionRef<'f> {
267267
/// Reference to the directly supplied description in the invoice
268268
Direct(&'f Description),

0 commit comments

Comments
 (0)