Make parallel closure FnOnce

This commit is contained in:
Truman Kilen 2025-01-18 16:09:50 -06:00
parent 1dadf36624
commit 9090a6984d

View file

@ -288,9 +288,9 @@ impl<W: Write + Seek> PakWriter<W> {
Ok(())
}
pub fn parallel<F, E>(&mut self, mut f: F) -> Result<&mut Self, E>
pub fn parallel<F, E>(&mut self, f: F) -> Result<&mut Self, E>
where
F: Send + Sync + FnMut(&mut ParallelPakWriter) -> Result<(), E>,
F: Send + Sync + FnOnce(&mut ParallelPakWriter) -> Result<(), E>,
E: From<Error> + Send,
{
{