From: Matt Corallo Date: Thu, 23 Sep 2021 17:45:51 +0000 (+0000) Subject: Update io::Read manual implementation to upstream API changes X-Git-Tag: v0.0.101.1~1^2~12 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=5b57dc3eba8d627b8603aeab770cb1eff21cd51c;p=ldk-c-bindings Update io::Read manual implementation to upstream API changes --- diff --git a/lightning-c-bindings/src/c_types/mod.rs b/lightning-c-bindings/src/c_types/mod.rs index 09c8a51..95dae8d 100644 --- 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: &I) -> derived::CVec_u8Z { let mut out = VecWriter(Vec::new());