Skip to content

Commit

Permalink
♻️ Avoid unnecessary copy
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanTsune committed Sep 17, 2023
1 parent 0ad7e4f commit 06fe3a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/archive/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ impl<'r, R: Read> Iterator for Entries<'r, R> {
let entries = entry.entries(password.as_deref());
match entries {
Ok(entries) => {
self.buf = VecDeque::from(entries.collect::<Vec<_>>());
self.buf = entries.collect::<VecDeque<_>>();
self.next()
}
Err(e) => Some(Err(e)),
Expand Down

0 comments on commit 06fe3a8

Please sign in to comment.