Skip to content

Commit 9f9ed59

Browse files
committed
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.
1 parent 6d62d5d commit 9f9ed59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/util/ser.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,13 +1351,15 @@ impl Readable for Hostname {
13511351
}
13521352
}
13531353

1354+
/// This is not exported to bindings users as `Duration`s are simply mapped as ints.
13541355
impl Writeable for Duration {
13551356
#[inline]
13561357
fn write<W: Writer>(&self, w: &mut W) -> Result<(), io::Error> {
13571358
self.as_secs().write(w)?;
13581359
self.subsec_nanos().write(w)
13591360
}
13601361
}
1362+
/// This is not exported to bindings users as `Duration`s are simply mapped as ints.
13611363
impl Readable for Duration {
13621364
#[inline]
13631365
fn read<R: Read>(r: &mut R) -> Result<Self, DecodeError> {

0 commit comments

Comments
 (0)