diff --git a/proxmox-compression/src/tar.rs b/proxmox-compression/src/tar.rs index 7489e432..57e7e18e 100644 --- a/proxmox-compression/src/tar.rs +++ b/proxmox-compression/src/tar.rs @@ -58,7 +58,7 @@ impl Builder { { 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 Builder { 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 diff --git a/proxmox-compression/src/zstd.rs b/proxmox-compression/src/zstd.rs index d9e58264..91370a69 100644 --- a/proxmox-compression/src/zstd.rs +++ b/proxmox-compression/src/zstd.rs @@ -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 }