From 5b57dc3eba8d627b8603aeab770cb1eff21cd51c Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Thu, 23 Sep 2021 17:45:51 +0000 Subject: [PATCH] Update io::Read manual implementation to upstream API changes --- lightning-c-bindings/src/c_types/mod.rs | 3 --- 1 file changed, 3 deletions(-) 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()); -- 2.39.5