Use let .. = &mut instead of let ref mut .. =

This commit is contained in:
Benjamin Richner 2020-06-23 21:12:36 +02:00
parent d50dcaced7
commit 07caeca6ea

View file

@ -394,7 +394,7 @@ impl<R: Read + io::Seek> ZipArchive<R> {
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 {