mirror of
https://github.com/quickwit-oss/tantivy.git
synced 2026-01-06 01:02:55 +00:00
vec without capacity
This commit is contained in:
@@ -123,7 +123,7 @@ impl Compressor {
|
||||
}
|
||||
|
||||
pub(crate) fn decompress(&self, compressed_block: &[u8]) -> io::Result<Vec<u8>> {
|
||||
let mut decompressed_block = Vec::with_capacity(compressed_block.len() * 2);
|
||||
let mut decompressed_block = vec![];
|
||||
self.decompress_into(compressed_block, &mut decompressed_block)?;
|
||||
Ok(decompressed_block)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user