From: Matt Corallo Date: Wed, 19 Jul 2023 20:04:24 +0000 (+0000) Subject: Mark the `Duration` serialization implementation no-bindings-export X-Git-Tag: v0.0.116~3^2~4 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=9f9ed591a50dfb893cb48886fdbdfb11c28b4a79;p=rust-lightning 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. --- diff --git a/lightning/src/util/ser.rs b/lightning/src/util/ser.rs index 0e510760e..919db8f9e 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 {