Skip to content

Commit b4d8803

Browse files
committed
Support clone for ThreeBytes
1 parent a846824 commit b4d8803

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

c-bindings-gen/src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ fn initial_clonable_types() -> HashSet<String> {
861861
let mut res = HashSet::new();
862862
res.insert("crate::c_types::U5".to_owned());
863863
res.insert("crate::c_types::U128".to_owned());
864+
res.insert("crate::c_types::ThreeBytes".to_owned());
864865
res.insert("crate::c_types::FourBytes".to_owned());
865866
res.insert("crate::c_types::TwelveBytes".to_owned());
866867
res.insert("crate::c_types::SixteenBytes".to_owned());

lightning-c-bindings/src/c_types/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ pub struct ThirtyTwoBytes {
774774
pub data: [u8; 32],
775775
}
776776

777+
#[derive(Clone)]
777778
#[repr(C)]
778779
/// A 3-byte byte array.
779780
pub struct ThreeBytes { /** The three bytes */ pub data: [u8; 3], }

0 commit comments

Comments
 (0)