fix clippy warnings
[nihav.git] / nihav-realmedia / src / codecs / cook.rs
index 48bdb0a80cafd799ed7842180c1d83cb1cfac511..1afe246793f1a8c54450fd9013c98cb3aa7d7dbe 100644 (file)
@@ -292,7 +292,7 @@ impl CookChannelPair {
         for _ in 0..num_vectors {
             let idx = tcat[tcat_idx2];
             tcat_idx2 += 1;
-            self.category[idx] = (self.category[idx] + 1).min((NUM_CATEGORIES - 1) as u8) as u8;
+            self.category[idx] = (self.category[idx] + 1).min((NUM_CATEGORIES - 1) as u8);
         }
     }
     fn decode_channel_data(&mut self, dsp: &mut CookDSP, rnd: &mut RND, codebooks: &Codebooks, src: &[u8], buf: &mut [u8], channel: usize) -> DecoderResult<()> {