]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Add relevant derives for `BigSize` as its a simple integer 2023-07-116-bindings-part-2
authorMatt Corallo <git@bluematt.me>
Wed, 19 Jul 2023 23:59:29 +0000 (23:59 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 20 Jul 2023 21:43:52 +0000 (21:43 +0000)
lightning/src/util/ser.rs

index 919db8f9e57817e1232cfcf7fcf16f7b5d981244..1eb5e7424c82343d0bb88aef7df632dc408563f0 100644 (file)
@@ -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]