From c82f410c675a72cd5871129aa0d4b84eb081f56a Mon Sep 17 00:00:00 2001 From: David Craven Date: Mon, 25 Feb 2019 15:04:09 +0100 Subject: [PATCH] Expose and document read_data_item. --- src/decoder.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/decoder.rs b/src/decoder.rs index 5aaf86d..a5a78e3 100644 --- a/src/decoder.rs +++ b/src/decoder.rs @@ -98,7 +98,8 @@ impl Decoder { Items { dec: self } } - fn read_data_item(&mut self, first: Option) -> CborResult { + /// Reads a data item. + pub fn read_data_item(&mut self, first: Option) -> CborResult { let first = match first { Some(first) => first, None => try!(self.rdr.read_u8()),