diff --git a/proxmox-compression/src/tar.rs b/proxmox-compression/src/tar.rs index c5b48e86..d8df5583 100644 --- a/proxmox-compression/src/tar.rs +++ b/proxmox-compression/src/tar.rs @@ -43,16 +43,10 @@ pub struct Builder { impl Builder { /// Takes an AsyncWriter as target pub fn new(inner: W) -> Builder { - Builder { - inner, - } + Builder { inner } } - async fn add( - &mut self, - header: &Header, - mut data: R, - ) -> io::Result<()> { + async fn add(&mut self, header: &Header, mut data: R) -> io::Result<()> { append_data(&mut self.inner, header, &mut data).await }