projects
/
rust-lightning
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cffeb6
)
Add relevant derives for `BigSize` as its a simple integer
2023-07-116-bindings-part-2
author
Matt Corallo
<git@bluematt.me>
Wed, 19 Jul 2023 23:59:29 +0000
(23:59 +0000)
committer
Matt Corallo
<git@bluematt.me>
Thu, 20 Jul 2023 21:43:52 +0000
(21:43 +0000)
lightning/src/util/ser.rs
patch
|
blob
|
history
diff --git
a/lightning/src/util/ser.rs
b/lightning/src/util/ser.rs
index 919db8f9e57817e1232cfcf7fcf16f7b5d981244..1eb5e7424c82343d0bb88aef7df632dc408563f0 100644
(file)
--- 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]