Don't require mut self for ParallelPakWriter::write_file

This commit is contained in:
Truman Kilen 2025-01-19 17:07:22 -06:00
parent 3b78c00527
commit fb52732b64

View file

@ -376,7 +376,7 @@ impl<W: Write + Seek> PakWriter<W> {
}
impl ParallelPakWriter {
pub fn write_file(&mut self, path: String, compress: bool, data: Vec<u8>) -> Result<(), Error> {
pub fn write_file(&self, path: String, compress: bool, data: Vec<u8>) -> Result<(), Error> {
self.tx.send((path, compress, Arc::new(data))).unwrap();
Ok(())
}