]> git.nihav.org Git - nihav.git/commitdiff
make internal struct non-public
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 20 May 2017 13:29:45 +0000 (15:29 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 20 May 2017 13:29:45 +0000 (15:29 +0200)
src/demuxers/mod.rs

index 5e337a50d4311ce56f56d16c2ce91370247b3a25..c6096c73a51e713fdfbafe59c37b2778dc99acda 100644 (file)
@@ -149,7 +149,7 @@ impl<'a> NAPacketReader for ByteReader<'a> {
     }
 }
 
-pub struct Demuxer {
+struct Demuxer {
     streams: Vec<Rc<NAStream>>,
 }
 
@@ -169,6 +169,7 @@ impl Demuxer {
             None
         }
     }
+    #[allow(dead_code)]
     pub fn get_stream_by_id(&self, id: u32) -> Option<Rc<NAStream>> {
         for i in 0..self.streams.len() {
             if self.streams[i].get_id() == id {