From 07caeca6eacc2744bbdee692d0b6dc5714a0b3aa Mon Sep 17 00:00:00 2001 From: Benjamin Richner Date: Tue, 23 Jun 2020 21:12:36 +0200 Subject: [PATCH] Use `let .. = &mut` instead of `let ref mut .. =` --- src/read.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/read.rs b/src/read.rs index 75d1ec42..90d90ecf 100644 --- a/src/read.rs +++ b/src/read.rs @@ -394,7 +394,7 @@ impl ZipArchive { if file_number >= self.files.len() { return Err(ZipError::FileNotFound); } - let ref mut data = self.files[file_number]; + let data = &mut self.files[file_number]; if password == None { if data.encrypted {