clippy: Remove unnecessary casts

This commit is contained in:
Ian Hobson committed 2023-05-19 10:57:39 +02:00
1 parent 9eb655cd27
commit b6c20ae410
3 files changed
+8 -18

No files matched your search

+1 -1
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));