From b48e78354ed64cb0fa453abb86f4e2a4b54e59c7 Mon Sep 17 00:00:00 2001 From: ChanTsune <41658782+ChanTsune@users.noreply.github.com> Date: Sun, 17 Sep 2023 22:08:05 +0900 Subject: [PATCH] :recycle: Avoid unnecessary copy --- lib/src/archive/read.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/archive/read.rs b/lib/src/archive/read.rs index d0c63171..58657521 100644 --- a/lib/src/archive/read.rs +++ b/lib/src/archive/read.rs @@ -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::>()); + self.buf = entries.collect::>(); self.next() } Err(e) => Some(Err(e)),