diff options
| author | Kostya Shishkov <[email protected]> | 2022-07-28 18:39:05 +0200 |
|---|---|---|
| committer | Kostya Shishkov <[email protected]> | 2022-09-05 18:24:40 +0200 |
| commit | 3518aa855fa776fa96a0deca1660299611e41e96 (patch) | |
| tree | d1f6edaf36adf3f7f8398278ecea99cda82f6556 | |
| parent | 7d251522e5f4b6e410cec1b3b9d8f1e1ce80dbdd (diff) | |
silence warnings in a newer rustc
| -rw-r--r-- | nihav-commonfmt/src/codecs/ts102366.rs | 3 | ||||
| -rw-r--r-- | nihav-realmedia/src/codecs/rv60.rs | 1 | ||||
| -rw-r--r-- | nihav-realmedia/src/demuxers/realmedia.rs | 1 |
3 files changed, 5 insertions, 0 deletions
diff --git a/nihav-commonfmt/src/codecs/ts102366.rs b/nihav-commonfmt/src/codecs/ts102366.rs index 5cf90c5..963f07d 100644 --- a/nihav-commonfmt/src/codecs/ts102366.rs +++ b/nihav-commonfmt/src/codecs/ts102366.rs @@ -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, diff --git a/nihav-realmedia/src/codecs/rv60.rs b/nihav-realmedia/src/codecs/rv60.rs index 71668d7..55faf03 100644 --- a/nihav-realmedia/src/codecs/rv60.rs +++ b/nihav-realmedia/src/codecs/rv60.rs @@ -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, diff --git a/nihav-realmedia/src/demuxers/realmedia.rs b/nihav-realmedia/src/demuxers/realmedia.rs index 7a59f56..f508c6a 100644 --- a/nihav-realmedia/src/demuxers/realmedia.rs +++ b/nihav-realmedia/src/demuxers/realmedia.rs @@ -797,6 +797,7 @@ struct InterleaveInfo { } #[derive(Clone,Copy,Debug)] +#[allow(dead_code)] struct RealAudioInfo { fcc: u32, sample_rate: u32, |
