From 999ca6c91a5f4a696cbb62f814921ccfb8a63105 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Sat, 20 May 2017 15:29:45 +0200 Subject: [PATCH] make internal struct non-public --- src/demuxers/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/demuxers/mod.rs b/src/demuxers/mod.rs index 5e337a5..c6096c7 100644 --- a/src/demuxers/mod.rs +++ b/src/demuxers/mod.rs @@ -149,7 +149,7 @@ impl<'a> NAPacketReader for ByteReader<'a> { } } -pub struct Demuxer { +struct Demuxer { streams: Vec>, } @@ -169,6 +169,7 @@ impl Demuxer { None } } + #[allow(dead_code)] pub fn get_stream_by_id(&self, id: u32) -> Option> { for i in 0..self.streams.len() { if self.streams[i].get_id() == id { -- 2.39.5