From: Matt Corallo Date: Wed, 19 Jul 2023 23:59:29 +0000 (+0000) Subject: Add relevant derives for `BigSize` as its a simple integer X-Git-Tag: v0.0.116~3^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=27bf1d053d395639b70e6aeae7be3935eb50702e;p=rust-lightning Add relevant derives for `BigSize` as its a simple integer --- 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]