Mark the `Duration` serialization implementation no-bindings-export
authorMatt Corallo <git@bluematt.me>
Wed, 19 Jul 2023 20:04:24 +0000 (20:04 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 20 Jul 2023 21:43:52 +0000 (21:43 +0000)
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

index 0e510760e62a3725055cecf3394a17b5b879af9a..919db8f9e57817e1232cfcf7fcf16f7b5d981244 100644 (file)
@@ -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<W: Writer>(&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: Read>(r: &mut R) -> Result<Self, DecodeError> {