game: fix or silence clippy warnings
[nihav.git] / nihav-game / src / codecs / lhst500f22.rs
index e3535f57359a7282dfbbd8398122c79230351c8a..e795070050ab70469e07d3ef1ca61dd49e000402 100644 (file)
@@ -313,6 +313,7 @@ impl LHDecoder {
         }
         Ok(())
     }
+    #[allow(clippy::identity_op)]
     fn unpack_samples(&mut self, br: &mut BitReader) -> DecoderResult<()> {
         for grp in 0..3 {
             for gr in 0..4 {
@@ -368,7 +369,7 @@ impl NADecoder for LHDecoder {
     fn init(&mut self, _supp: &mut NADecoderSupport, info: NACodecInfoRef) -> DecoderResult<()> {
         if let NACodecTypeInfo::Audio(ainfo) = info.get_properties() {
             self.ainfo = NAAudioInfo::new(ainfo.get_sample_rate(), 1, SND_F32P_FORMAT, CODEC_SAMPLES);
-            self.info = info.replace_info(NACodecTypeInfo::Audio(self.ainfo.clone()));
+            self.info = info.replace_info(NACodecTypeInfo::Audio(self.ainfo));
             self.chmap = NAChannelMap::from_str("C").unwrap();
             Ok(())
         } else {