Skip to content

Commit

Permalink
Fixes two clippy lint issues
Browse files Browse the repository at this point in the history
Clippy updated and has a new lint regarding clone efficiency. This was
not yet a thing when the previous version was prepared.
  • Loading branch information
dvdsk committed May 5, 2024
1 parent 50f0177 commit 97cff09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decoder/symphonia.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 97cff09

Please sign in to comment.