mirror of
https://github.com/RustAudio/rodio
synced 2024-11-10 06:04:16 +00:00
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:
parent
50f0177b74
commit
97cff09fe2
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue