fix clippy warnings for update to rustc 1.46
[nihav.git] / nihav-indeo / src / codecs / imc.rs
index ea84d0ab01977f91285045264d60488f5df197d7..cb89b8ee403d198460080715a0f5c204aa411679 100644 (file)
@@ -103,7 +103,7 @@ impl BitAlloc {
             self.skip_flag[i]       = false;
         }
     }
-    #[allow(clippy::cyclomatic_complexity)]
+    #[allow(clippy::cognitive_complexity)]
     fn calculate_bit_allocation(&mut self, ch_data: &mut IMCChannel, bits: usize, fixed_head: bool, adj_idx: usize) -> DecoderResult<()> {
 
         let mut peak = 0.0;
@@ -360,7 +360,7 @@ impl IMCDecoder {
             weights2.copy_from_slice(&IMC_WEIGHTS2);
         }
         unsafe {
-            codes = mem::uninitialized();
+            codes = mem::MaybeUninit::uninit().assume_init();
             for i in 0..4 {
                 for j in 0..4 {
                     let mut cr = IMCCodeReader::new(i, j);