From e8656da70d322ef3e45137178ed693d64b83c1cd Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 6 Apr 2021 11:03:46 +0200 Subject: [PATCH] tools/zip: run rustfmt Signed-off-by: Dominik Csapak --- src/tools/zip.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tools/zip.rs b/src/tools/zip.rs index 55f2a24a..afacfbb9 100644 --- a/src/tools/zip.rs +++ b/src/tools/zip.rs @@ -16,8 +16,8 @@ use endian_trait::Endian; use tokio::io::{AsyncRead, AsyncWrite, AsyncWriteExt}; use crc32fast::Hasher; -use proxmox::tools::time::gmtime; use proxmox::tools::byte_buffer::ByteBuffer; +use proxmox::tools::time::gmtime; const LOCAL_FH_SIG: u32 = 0x04034B50; const LOCAL_FF_SIG: u32 = 0x08074B50; @@ -410,7 +410,7 @@ impl ZipEncoder { byte_count: 0, files: Vec::new(), target, - buf: ByteBuffer::with_capacity(1024*1024), + buf: ByteBuffer::with_capacity(1024 * 1024), } } @@ -425,7 +425,6 @@ impl ZipEncoder { let mut hasher = Hasher::new(); let mut size = 0; loop { - let count = self.buf.read_from_async(&mut content).await?; // end of file