Skip to content

Commit 27bf1d0

Browse files
committed
Add relevant derives for BigSize as its a simple integer
1 parent 8cffeb6 commit 27bf1d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/util/ser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ impl Readable for U48 {
358358
/// encoded in several different ways, which we must check for at deserialization-time. Thus, if
359359
/// you're looking for an example of a variable-length integer to use for your own project, move
360360
/// along, this is a rather poor design.
361+
#[derive(Clone, Copy, Debug, Hash, PartialOrd, Ord, PartialEq, Eq)]
361362
pub struct BigSize(pub u64);
362363
impl Writeable for BigSize {
363364
#[inline]

0 commit comments

Comments
 (0)