mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
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.
This commit is contained in:
parent
6d62d5d021
commit
9f9ed591a5
1 changed files with 2 additions and 0 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Reference in a new issue