fix: add missing clone_box impls for gzip and lz4 engines
Co-authored-by: aider (openai/andrew/openrouter/sonoma-sky-alpha) <aider@aider.chat>
This commit is contained in:
@@ -57,6 +57,10 @@ impl CompressionEngine for CompressionEngineGZip {
|
|||||||
|
|
||||||
Ok(Box::new(AutoFinishGzEncoder::new(gzip_write)))
|
Ok(Box::new(AutoFinishGzEncoder::new(gzip_write)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn clone_box(&self) -> Box<dyn CompressionEngine> {
|
||||||
|
Box::new(self.clone())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "gzip")]
|
#[cfg(feature = "gzip")]
|
||||||
|
|||||||
@@ -34,4 +34,8 @@ impl CompressionEngine for CompressionEngineLZ4 {
|
|||||||
|
|
||||||
Ok(Box::new(lz4_write))
|
Ok(Box::new(lz4_write))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn clone_box(&self) -> Box<dyn CompressionEngine> {
|
||||||
|
Box::new(self.clone())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user