]> git.bitcoin.ninja Git - ldk-c-bindings/commitdiff
Update io::Read manual implementation to upstream API changes
authorMatt Corallo <git@bluematt.me>
Thu, 23 Sep 2021 17:45:51 +0000 (17:45 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 23 Sep 2021 18:35:11 +0000 (18:35 +0000)
lightning-c-bindings/src/c_types/mod.rs

index 09c8a5147d4c096fea4c1313af2497a659072269..95dae8da8762437db4dbd53f456def6ac122dcab 100644 (file)
@@ -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());