fix borrow check issue on rustc 1.34.2

This commit is contained in:
Jonathan Behrens committed 2021-04-10 21:45:04 -04:00
1 parent 201b95f749
commit 1eb9c4fab7
1 file changed
+1 -1
+1 -1
View File
@@ -973,7 +973,7 @@ impl<R: Read + Seek> Decoder<R> {
match reader.read(&mut buffer[bytes_written..]) {
Ok(0) => break,
Ok(n) => bytes_written += n,
Err(e) if e.kind() == io::ErrorKind::Interrupted => {}
Err(ref e) if e.kind() == io::ErrorKind::Interrupted => {}
Err(e) => Err(e)?,
}
}