From 27bf1d053d395639b70e6aeae7be3935eb50702e Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 19 Jul 2023 23:59:29 +0000 Subject: [PATCH] Add relevant derives for `BigSize` as its a simple integer --- lightning/src/util/ser.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lightning/src/util/ser.rs b/lightning/src/util/ser.rs index 919db8f9e..1eb5e7424 100644 --- a/lightning/src/util/ser.rs +++ b/lightning/src/util/ser.rs @@ -358,6 +358,7 @@ impl Readable for U48 { /// encoded in several different ways, which we must check for at deserialization-time. Thus, if /// you're looking for an example of a variable-length integer to use for your own project, move /// along, this is a rather poor design. +#[derive(Clone, Copy, Debug, Hash, PartialOrd, Ord, PartialEq, Eq)] pub struct BigSize(pub u64); impl Writeable for BigSize { #[inline] -- 2.39.5