Skip to content

Commit 882a0cb

Browse files
committed
Derive Copy for HumanReadableNames
Now that these do not allocate, we should allow them to be `Copy`ed.
1 parent 5ae19b4 commit 882a0cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/onion_message/dns_resolution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ const REQUIRED_EXTRA_LEN: usize = ".user._bitcoin-payment.".len() + 1;
201201
/// This struct can also be used for LN-Address recipients.
202202
///
203203
/// [Homograph Attacks]: https://en.wikipedia.org/wiki/IDN_homograph_attack
204-
#[derive(Clone, Debug, Hash, PartialEq, Eq)]
204+
#[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)]
205205
pub struct HumanReadableName {
206206
contents: [u8; 255 - REQUIRED_EXTRA_LEN],
207207
user_len: u8,

0 commit comments

Comments
 (0)