]> git.nihav.org Git - nihav.git/commitdiff
silence warnings in a newer rustc
authorKostya Shishkov <kostya.shishkov@gmail.com>
Thu, 28 Jul 2022 16:39:05 +0000 (18:39 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Mon, 5 Sep 2022 16:24:40 +0000 (18:24 +0200)
nihav-commonfmt/src/codecs/ts102366.rs
nihav-realmedia/src/codecs/rv60.rs
nihav-realmedia/src/demuxers/realmedia.rs

index 5cf90c506c4ca07ddd5c8222e895aed21f0cfe6d..963f07dd8a565aa0a7039967935fcc60685645ef 100644 (file)
@@ -170,6 +170,7 @@ const FRAME_SIZES: [[usize; 64]; 4] = [
 ];
 
 #[derive(Debug,Clone,Copy)]
+#[allow(dead_code)]
 struct Syncinfo {
     crc1:       u16,
     fscod:      u8,
@@ -286,6 +287,7 @@ const AC_MODES: [ACMode; 8] = [
 ];
 
 #[derive(Debug,Clone,Copy)]
+#[allow(dead_code)]
 struct Mixinfo {
     dialnorm:   u8,
     compr:      Option<u8>,
@@ -312,6 +314,7 @@ impl Mixinfo {
 }
 
 #[derive(Debug,Clone,Copy)]
+#[allow(dead_code)]
 struct BSI {
     bsid:       u8,
     shift:      u8,
index 71668d78522010644230231afdac814cb5a9b471..55faf037cac3ddb3b4df466de02e3b34f1fb15aa 100644 (file)
@@ -41,6 +41,7 @@ const RV60_FRAME_TYPES: [FrameType; 4] = [ FrameType::I, FrameType::P, FrameType
 const MAX_IMODE: u8 = 34;
 
 #[derive(Clone,Copy,Debug)]
+#[allow(dead_code)]
 struct FrameHeader {
     profile:            u8,
     ftype:              FrameType,
index 7a59f567d1e7c83c67346a53d340869955f8307e..f508c6a58387387a9a63de686feb0ab6de61bf2b 100644 (file)
@@ -797,6 +797,7 @@ struct InterleaveInfo {
 }
 
 #[derive(Clone,Copy,Debug)]
+#[allow(dead_code)]
 struct RealAudioInfo {
     fcc:                u32,
     sample_rate:        u32,