compression: clippy fixes
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
b06b4c7426
commit
30901c60f5
@ -58,7 +58,7 @@ impl<W: AsyncWrite + Unpin> Builder<W> {
|
||||
{
|
||||
append_path_header(&mut self.inner, header, path.as_ref()).await?;
|
||||
header.set_cksum();
|
||||
self.add(&header, data).await
|
||||
self.add(header, data).await
|
||||
}
|
||||
|
||||
/// Adds a new link (symbolic or hard) entry to this archive with the specified path and target.
|
||||
@ -82,7 +82,7 @@ impl<W: AsyncWrite + Unpin> Builder<W> {
|
||||
append_data(&mut self.inner, &extension, &mut ext_data).await?;
|
||||
}
|
||||
header.set_cksum();
|
||||
self.add(&header, tokio::io::empty()).await
|
||||
self.add(header, tokio::io::empty()).await
|
||||
}
|
||||
|
||||
/// Finish the archive and flush the underlying writer
|
||||
|
@ -73,7 +73,7 @@ impl<'a, T> ZstdEncoder<'a, T> {
|
||||
let mut outbuf = OutBuffer::around(self.buffer.get_free_mut_slice());
|
||||
let res = self.compressor.finish(&mut outbuf, true);
|
||||
let size = outbuf.pos;
|
||||
drop(outbuf);
|
||||
// drop(outbuf);
|
||||
self.buffer.add_size(size);
|
||||
res
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user