fix some clippy warnings
[nihav.git] / nihav-commonfmt / src / codecs / ts102366.rs
index 5cf90c506c4ca07ddd5c8222e895aed21f0cfe6d..a2ee21cc5a42251257ad11be9e433bdd81923753 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,
@@ -260,21 +261,17 @@ impl ACMode {
         chmap
     }
     fn is_3_x(self) -> bool {
-        match self {
+        matches!(self,
             ACMode::Mode3_0 |
             ACMode::Mode3_1 |
-            ACMode::Mode3_2     => true,
-            _                   => false,
-        }
+            ACMode::Mode3_2)
     }
     fn is_surround(self) -> bool {
-        match self {
+        matches!(self,
             ACMode::Mode2_1 |
             ACMode::Mode3_1 |
             ACMode::Mode2_2 |
-            ACMode::Mode3_2     => true,
-            _                   => false,
-        }
+            ACMode::Mode3_2)
     }
 }
 
@@ -286,6 +283,7 @@ const AC_MODES: [ACMode; 8] = [
 ];
 
 #[derive(Debug,Clone,Copy)]
+#[allow(dead_code)]
 struct Mixinfo {
     dialnorm:   u8,
     compr:      Option<u8>,
@@ -312,6 +310,7 @@ impl Mixinfo {
 }
 
 #[derive(Debug,Clone,Copy)]
+#[allow(dead_code)]
 struct BSI {
     bsid:       u8,
     shift:      u8,