diff --git a/repak/src/pak.rs b/repak/src/pak.rs index 043453f..71b3973 100644 --- a/repak/src/pak.rs +++ b/repak/src/pak.rs @@ -288,9 +288,9 @@ impl PakWriter { Ok(()) } - pub fn parallel(&mut self, mut f: F) -> Result<&mut Self, E> + pub fn parallel(&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 + Send, { {