mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2026-11-16 00:34:13 +00:00
clippy: Avoid unnecessary closures
This commit is contained in:
1 parent
7c01778029
commit
cf5ec121da
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -585,7 +585,7 @@ impl<R: Read + Seek> WaveReader<R> {
|
||||
Ok((start, length)) => {
|
||||
buffer.resize(length as usize, 0x0);
|
||||
self.inner.seek(SeekFrom::Start(start))?;
|
||||
self.inner.read(buffer).map_err(|e| ParserError::IOError(e))
|
||||
self.inner.read(buffer).map_err(ParserError::IOError)
|
||||
}
|
||||
Err(ParserError::ChunkMissing { signature: _ }) => Ok(0),
|
||||
Err(any) => Err(any),
|
||||
|
||||
Reference in new issue
Block a user