tools/zip: run rustfmt
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
59477ad252
commit
e8656da70d
@ -16,8 +16,8 @@ use endian_trait::Endian;
|
|||||||
use tokio::io::{AsyncRead, AsyncWrite, AsyncWriteExt};
|
use tokio::io::{AsyncRead, AsyncWrite, AsyncWriteExt};
|
||||||
|
|
||||||
use crc32fast::Hasher;
|
use crc32fast::Hasher;
|
||||||
use proxmox::tools::time::gmtime;
|
|
||||||
use proxmox::tools::byte_buffer::ByteBuffer;
|
use proxmox::tools::byte_buffer::ByteBuffer;
|
||||||
|
use proxmox::tools::time::gmtime;
|
||||||
|
|
||||||
const LOCAL_FH_SIG: u32 = 0x04034B50;
|
const LOCAL_FH_SIG: u32 = 0x04034B50;
|
||||||
const LOCAL_FF_SIG: u32 = 0x08074B50;
|
const LOCAL_FF_SIG: u32 = 0x08074B50;
|
||||||
@ -410,7 +410,7 @@ impl<W: AsyncWrite + Unpin> ZipEncoder<W> {
|
|||||||
byte_count: 0,
|
byte_count: 0,
|
||||||
files: Vec::new(),
|
files: Vec::new(),
|
||||||
target,
|
target,
|
||||||
buf: ByteBuffer::with_capacity(1024*1024),
|
buf: ByteBuffer::with_capacity(1024 * 1024),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -425,7 +425,6 @@ impl<W: AsyncWrite + Unpin> ZipEncoder<W> {
|
|||||||
let mut hasher = Hasher::new();
|
let mut hasher = Hasher::new();
|
||||||
let mut size = 0;
|
let mut size = 0;
|
||||||
loop {
|
loop {
|
||||||
|
|
||||||
let count = self.buf.read_from_async(&mut content).await?;
|
let count = self.buf.read_from_async(&mut content).await?;
|
||||||
|
|
||||||
// end of file
|
// end of file
|
||||||
|
Loading…
Reference in New Issue
Block a user