projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
c4cf32b
)
Update io::Read manual implementation to upstream API changes
author
Matt Corallo
<git@bluematt.me>
Thu, 23 Sep 2021 17:45:51 +0000
(17:45 +0000)
committer
Matt Corallo
<git@bluematt.me>
Thu, 23 Sep 2021 18:35:11 +0000
(18:35 +0000)
lightning-c-bindings/src/c_types/mod.rs
patch
|
blob
|
history
diff --git
a/lightning-c-bindings/src/c_types/mod.rs
b/lightning-c-bindings/src/c_types/mod.rs
index 09c8a5147d4c096fea4c1313af2497a659072269..95dae8da8762437db4dbd53f456def6ac122dcab 100644
(file)
--- a/
lightning-c-bindings/src/c_types/mod.rs
+++ b/
lightning-c-bindings/src/c_types/mod.rs
@@
-390,9
+390,6
@@
impl lightning::util::ser::Writer for VecWriter {
self.0.extend_from_slice(buf);
Ok(())
}
- fn size_hint(&mut self, size: usize) {
- self.0.reserve_exact(size);
- }
}
pub(crate) fn serialize_obj<I: lightning::util::ser::Writeable>(i: &I) -> derived::CVec_u8Z {
let mut out = VecWriter(Vec::new());