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:
Matt Corallo 2023-07-19 20:04:24 +00:00
parent 6d62d5d021
commit 9f9ed591a5

View 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> {