From 1eb9c4fab774e5c4f4e8b26f75d8c3765a025e6e Mon Sep 17 00:00:00 2001 From: Jonathan Behrens Date: Sat, 10 Apr 2021 21:45:04 -0400 Subject: [PATCH] fix borrow check issue on rustc 1.34.2 --- src/decoder/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)?, } }