mirror of
https://github.com/xavo95/repak.git
synced 2025-02-22 15:53:45 +00:00
Make parallel closure FnOnce
This commit is contained in:
parent
1dadf36624
commit
9090a6984d
1 changed files with 2 additions and 2 deletions
|
@ -288,9 +288,9 @@ impl<W: Write + Seek> PakWriter<W> {
|
||||||
Ok(())
|
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
|
where
|
||||||
F: Send + Sync + FnMut(&mut ParallelPakWriter) -> Result<(), E>,
|
F: Send + Sync + FnOnce(&mut ParallelPakWriter) -> Result<(), E>,
|
||||||
E: From<Error> + Send,
|
E: From<Error> + Send,
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue