mirror of
https://github.com/xavo95/repak.git
synced 2025-02-22 15:53:45 +00:00
Don't require mut self for ParallelPakWriter::write_file
This commit is contained in:
parent
3b78c00527
commit
fb52732b64
1 changed files with 1 additions and 1 deletions
|
@ -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(())
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue