clippy: Remove unnecessary casts

This commit is contained in:
Ian Hobson
2023-05-12 16:52:06 +02:00
parent 9eb655cd27
commit b6c20ae410
3 changed files with 8 additions and 18 deletions

View File

@@ -607,7 +607,7 @@ impl<R: Read + Seek> WaveReader<R> {
/// Index of first LIST for with the given FORM fourcc
fn get_list_form(&mut self, fourcc: FourCC) -> Result<Option<u32>, ParserError> {
for (n, (start, _)) in self.get_chunks_extents(LIST_SIG)?.iter().enumerate() {
self.inner.seek(SeekFrom::Start(*start as u64))?;
self.inner.seek(SeekFrom::Start(*start))?;
let this_fourcc = self.inner.read_fourcc()?;
if this_fourcc == fourcc {
return Ok(Some(n as u32));