From 173b6fc16c22bc1f7db2becf1ace39dc983c19f4 Mon Sep 17 00:00:00 2001 From: jhwgh1968 Date: Mon, 18 Oct 2021 21:42:58 -0500 Subject: [PATCH] impl Read for Record --- src/record.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/record.rs b/src/record.rs index bb4c88e..c99460e 100644 --- a/src/record.rs +++ b/src/record.rs @@ -596,6 +596,12 @@ impl<'t, T: Read + 't> Record> { } } +impl<'t, T: Read + 't> Read for Record> { + fn read(&mut self, dst: &mut [u8]) -> Result { + self.body.read(dst) + } +} + impl Default for Record { fn default() -> Record { Record {