Fixes two clippy lint issues

Clippy updated and has a new lint regarding clone efficiency. This was
not yet a thing when the previous version was prepared.
This commit is contained in:
dvdsk 2024-05-05 10:39:56 +02:00
parent 50f0177b74
commit 97cff09fe2
No known key found for this signature in database
GPG key ID: 6CF9D20C5709A836

View file

@ -214,7 +214,7 @@ impl SymphoniaDecoder {
}
let decoded = decoded.map_err(SeekError::Decoding)?;
self.spec = decoded.spec().to_owned();
decoded.spec().clone_into(&mut self.spec);
self.buffer = SymphoniaDecoder::get_buffer(decoded, &self.spec);
self.current_frame_offset = samples_to_pass as usize * self.channels() as usize;
Ok(())
@ -250,7 +250,7 @@ impl Iterator for SymphoniaDecoder {
}
}
let decoded = decoded.ok()?;
self.spec = decoded.spec().to_owned();
decoded.spec().clone_into(&mut self.spec);
self.buffer = SymphoniaDecoder::get_buffer(decoded, &self.spec);
self.current_frame_offset = 0;
}