compression: fmt

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-04-13 09:08:44 +02:00
parent fa5373c5c0
commit d4a09de520

View File

@ -43,16 +43,10 @@ pub struct Builder<W: AsyncWrite + Unpin> {
impl<W: AsyncWrite + Unpin> Builder<W> {
/// Takes an AsyncWriter as target
pub fn new(inner: W) -> Builder<W> {
Builder {
inner,
}
Builder { inner }
}
async fn add<R: AsyncRead + Unpin>(
&mut self,
header: &Header,
mut data: R,
) -> io::Result<()> {
async fn add<R: AsyncRead + Unpin>(&mut self, header: &Header, mut data: R) -> io::Result<()> {
append_data(&mut self.inner, header, &mut data).await
}