mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-05 13:19:36 +00:00
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> {
|
impl<W: AsyncWrite + Unpin> Builder<W> {
|
||||||
/// Takes an AsyncWriter as target
|
/// Takes an AsyncWriter as target
|
||||||
pub fn new(inner: W) -> Builder<W> {
|
pub fn new(inner: W) -> Builder<W> {
|
||||||
Builder {
|
Builder { inner }
|
||||||
inner,
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn add<R: AsyncRead + Unpin>(
|
async fn add<R: AsyncRead + Unpin>(&mut self, header: &Header, mut data: R) -> io::Result<()> {
|
||||||
&mut self,
|
|
||||||
header: &Header,
|
|
||||||
mut data: R,
|
|
||||||
) -> io::Result<()> {
|
|
||||||
append_data(&mut self.inner, header, &mut data).await
|
append_data(&mut self.inner, header, &mut data).await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user