Skip to content

Commit 529cbed

Browse files
authored
Merge pull request #3445 from elsirion/2024-12-copy-description
chore: make `Bolt11InvoiceDescriptionRef` copy
2 parents f33738d + 64a3bd6 commit 529cbed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-invoice/src/lib.rs

+1-1
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)