From 9f9ed591a50dfb893cb48886fdbdfb11c28b4a79 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 19 Jul 2023 20:04:24 +0000 Subject: [PATCH] Mark the `Duration` serialization implementation no-bindings-export The bindings are being updated to consider all traits even if the trait itself is no-export, which causes issues generating code around the `Duration` impl here. --- lightning/src/util/ser.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lightning/src/util/ser.rs b/lightning/src/util/ser.rs index 0e510760..919db8f9 100644 --- a/lightning/src/util/ser.rs +++ b/lightning/src/util/ser.rs @@ -1351,6 +1351,7 @@ impl Readable for Hostname { } } +/// This is not exported to bindings users as `Duration`s are simply mapped as ints. impl Writeable for Duration { #[inline] fn write(&self, w: &mut W) -> Result<(), io::Error> { @@ -1358,6 +1359,7 @@ impl Writeable for Duration { self.subsec_nanos().write(w) } } +/// This is not exported to bindings users as `Duration`s are simply mapped as ints. impl Readable for Duration { #[inline] fn read(r: &mut R) -> Result { -- 2.30.2