Remove TODO and rely on the PR checklist

This commit is contained in:
Clément Renault 2024-12-17 17:18:15 +01:00
parent cdd6c34d67
commit d2e628e3b5
No known key found for this signature in database
GPG Key ID: F250A4C4E3AE5F5F

View File

@ -60,7 +60,6 @@ impl<'a> CompressedKvReaderU16<'a> {
bump: &'b Bump, bump: &'b Bump,
dictionary: &DecoderDictionary, dictionary: &DecoderDictionary,
) -> io::Result<&'b KvReaderU16> { ) -> io::Result<&'b KvReaderU16> {
/// TODO use a better approach and stop cloning so much.
let mut buffer = Vec::new(); let mut buffer = Vec::new();
self.decompress_with(&mut buffer, dictionary)?; self.decompress_with(&mut buffer, dictionary)?;
Ok(KvReaderU16::from_slice(bump.alloc_slice_copy(&buffer))) Ok(KvReaderU16::from_slice(bump.alloc_slice_copy(&buffer)))