chore: make Bolt11InvoiceDescriptionRef copy

This commit is contained in:
elsirion 2024-12-05 16:46:51 +01:00
parent 797993c65d
commit 64a3bd6856
No known key found for this signature in database
GPG Key ID: B3005E571AA314DA

View File

@ -262,7 +262,7 @@ impl Display for Bolt11InvoiceDescription {
///
/// This is not exported to bindings users as we don't have a good way to map the reference lifetimes making this
/// practically impossible to use safely in languages like C.
#[derive(Eq, PartialEq, Debug, Clone, Ord, PartialOrd)]
#[derive(Eq, PartialEq, Debug, Clone, Copy, Ord, PartialOrd)]
pub enum Bolt11InvoiceDescriptionRef<'f> {
/// Reference to the directly supplied description in the invoice
Direct(&'f Description),