fmt
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-08-08 16:55:22 +03:00
parent 4c555df8ca
commit f2fc72056b
2 changed files with 8 additions and 5 deletions

View File

@@ -59,7 +59,7 @@ where
let out = fs::File::create(path).await.str_err()?;
let out = io::BufWriter::with_capacity(opts.out_buf_size, out);
let data_buf: Vec<u8> = Vec::with_capacity(opts.data_buf_size);
let compress_lvl = opts.compress_lvl;
let table: Vec<LSize> = vec![];
@@ -79,8 +79,10 @@ where
let item_data = bincode::encode_to_vec(item, BINCODE_CFG).str_err()?;
let mut zencoder = ZstdEncoder::with_quality(&item_data[..], self.compress_lvl);
io::copy(&mut zencoder, &mut self.data_buf).await.str_err()?;
io::copy(&mut zencoder, &mut self.data_buf)
.await
.str_err()?;
self.table.push(pos);
Ok(())