forked from Proxmox/proxmox
compression: fmt
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
fa5373c5c0
commit
d4a09de520
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user