diff --git a/src/decoder/mod.rs b/src/decoder/mod.rs index 3667211..0cd082a 100644 --- a/src/decoder/mod.rs +++ b/src/decoder/mod.rs @@ -973,7 +973,7 @@ impl Decoder { 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)?, } }